1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02:00

adding artifact uploads for the rc branch (#245)

This commit is contained in:
Joseph Flinn 2021-03-04 09:51:45 -08:00 committed by GitHub
parent 6cb75e508a
commit 0a5f370fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,7 @@ jobs:
} }
- name: Create checksums - name: Create checksums
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc'
run: | run: |
checksum -f="./dist/bw-windows-${env:PACKAGE_VERSION}.zip" ` checksum -f="./dist/bw-windows-${env:PACKAGE_VERSION}.zip" `
-t sha256 | Out-File -Encoding ASCII ./dist/bw-windows-sha256-${env:PACKAGE_VERSION}.txt -t sha256 | Out-File -Encoding ASCII ./dist/bw-windows-sha256-${env:PACKAGE_VERSION}.txt
@ -118,49 +118,49 @@ jobs:
-t sha256 | Out-File -Encoding ASCII ./dist/bw-linux-sha256-${env:PACKAGE_VERSION}.txt -t sha256 | Out-File -Encoding ASCII ./dist/bw-linux-sha256-${env:PACKAGE_VERSION}.txt
- name: Publish windows zip to GitHub - name: Publish windows zip to GitHub
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: bw-windows-${{ env.PACKAGE_VERSION }}.zip name: bw-windows-${{ env.PACKAGE_VERSION }}.zip
path: ./dist/bw-windows-${{ env.PACKAGE_VERSION }}.zip path: ./dist/bw-windows-${{ env.PACKAGE_VERSION }}.zip
- name: Publish windows checksum to GitHub - name: Publish windows checksum to GitHub
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: bw-windows-sha256-${{ env.PACKAGE_VERSION }}.txt name: bw-windows-sha256-${{ env.PACKAGE_VERSION }}.txt
path: ./dist/bw-windows-sha256-${{ env.PACKAGE_VERSION }}.txt path: ./dist/bw-windows-sha256-${{ env.PACKAGE_VERSION }}.txt
- name: Publish macos zip to GitHub - name: Publish macos zip to GitHub
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: bw-macos-${{ env.PACKAGE_VERSION }}.zip name: bw-macos-${{ env.PACKAGE_VERSION }}.zip
path: ./dist/bw-macos-${{ env.PACKAGE_VERSION }}.zip path: ./dist/bw-macos-${{ env.PACKAGE_VERSION }}.zip
- name: Publish macos checksum to GitHub - name: Publish macos checksum to GitHub
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: bw-macos-sha256-${{ env.PACKAGE_VERSION }}.txt name: bw-macos-sha256-${{ env.PACKAGE_VERSION }}.txt
path: ./dist/bw-macos-sha256-${{ env.PACKAGE_VERSION }}.txt path: ./dist/bw-macos-sha256-${{ env.PACKAGE_VERSION }}.txt
- name: Publish linux zip to GitHub - name: Publish linux zip to GitHub
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: bw-linux-${{ env.PACKAGE_VERSION }}.zip name: bw-linux-${{ env.PACKAGE_VERSION }}.zip
path: ./dist/bw-linux-${{ env.PACKAGE_VERSION }}.zip path: ./dist/bw-linux-${{ env.PACKAGE_VERSION }}.zip
- name: Publish linux checksum to GitHub - name: Publish linux checksum to GitHub
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: bw-linux-sha256-${{ env.PACKAGE_VERSION }}.txt name: bw-linux-sha256-${{ env.PACKAGE_VERSION }}.txt
path: ./dist/bw-linux-sha256-${{ env.PACKAGE_VERSION }}.txt path: ./dist/bw-linux-sha256-${{ env.PACKAGE_VERSION }}.txt
- name: Publish Chocolatey CLI - name: Publish Chocolatey CLI
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: bitwarden-cli.${{ env.PACKAGE_VERSION }}.nupkg name: bitwarden-cli.${{ env.PACKAGE_VERSION }}.nupkg
@ -171,7 +171,7 @@ jobs:
name: Build Snap name: Build Snap
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: cli needs: cli
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc'
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -230,14 +230,12 @@ jobs:
sudo snap remove bw sudo snap remove bw
- name: Publish snap to GitHub - name: Publish snap to GitHub
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: bw_${{ env.PACKAGE_VERSION }}_amd64.snap name: bw_${{ env.PACKAGE_VERSION }}_amd64.snap
path: ./dist/snap/bw_${{ env.PACKAGE_VERSION }}_amd64.snap path: ./dist/snap/bw_${{ env.PACKAGE_VERSION }}_amd64.snap
- name: Publish snap checksum to GitHub - name: Publish snap checksum to GitHub
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: bw-snap-sha256-${{ env.PACKAGE_VERSION }}.txt name: bw-snap-sha256-${{ env.PACKAGE_VERSION }}.txt