making sure that dist/snap exists

This commit is contained in:
Joseph Flinn 2021-01-27 22:19:59 +00:00
parent 8248efb2ba
commit b70dea7acf
1 changed files with 5 additions and 5 deletions

View File

@ -196,17 +196,17 @@ jobs:
- name: Build Snap Package
run: |
mkdir ./dist
cp -r ./stores/snap -t ./dist/snap
sed -i s/__version__/${{ env.PACKAGE_VERSION }}/g ./dist/snap/snapcraft.yaml
mkdir -p dist/snap
cp -r stores/snap -t dist/snap
sed -i s/__version__/${{ env.PACKAGE_VERSION }}/g dist/snap/snapcraft.yaml
cd ./dist/snap
cd dist/snap
snapcraft
sha256sum bw_${{ env.PACKAGE_VERSION }}_amd64.snap | awk '{split($0, a); print a[1]}' > bw-snap-sha256-${{ env.PACKAGE_VERSION }}.txt
- name: Install Snap
run: sudo snap install ./dist/snap/bw*.snap --dangerous
run: sudo snap install dist/snap/bw*.snap --dangerous
- name: Test Snap
shell: pwsh