1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

copying over snap build to release

This commit is contained in:
Joseph Flinn 2021-01-28 00:09:02 +00:00
parent 8ca398d696
commit 52611dd8a7

View File

@ -244,13 +244,20 @@ jobs:
GITHUB_REF: ${{ github.ref }} GITHUB_REF: ${{ github.ref }}
GITHUB_EVENT: ${{ github.event_name }} GITHUB_EVENT: ${{ github.event_name }}
- name: Get bw linux cli
uses: actions/download-artifact@v2
with:
name: bw-linux-${{ env.PACKAGE_VERSION }}.zip
path: ./dist/snap
- name: Build Snap Package - name: Build Snap Package
run: | run: |
mkdir ./dist mkdir -p dist
cp -r ./stores/snap -t ./dist cp -r stores/snap -t dist
sed -i s/__version__/${{ env.PACKAGE_VERSION }}/g ./dist/snap/snapcraft.yaml sed -i s/__version__/${{ env.PACKAGE_VERSION }}/g dist/snap/snapcraft.yaml
cd ./dist/snap cd dist/snap
ls -alth
snapcraft snapcraft
sha256sum bw_${{ env.PACKAGE_VERSION }}_amd64.snap | awk '{split($0, a); print a[1]}' > bw-snap-sha256-${{ env.PACKAGE_VERSION }}.txt sha256sum bw_${{ env.PACKAGE_VERSION }}_amd64.snap | awk '{split($0, a); print a[1]}' > bw-snap-sha256-${{ env.PACKAGE_VERSION }}.txt