Cleaning up the build workflow and making sure the changes to the build workflow are reflected in the release workflow (#360)

This commit is contained in:
Joseph Flinn 2021-08-12 10:04:37 -07:00 committed by GitHub
parent 45eaa24b0c
commit a1738c57dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 14 deletions

View File

@ -180,15 +180,9 @@ jobs:
$env:pkgVersion = (Get-Content -Raw -Path ./package.json | ConvertFrom-Json).version
echo "PACKAGE_VERSION=$env:pkgVersion" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
#- name: Install Snapcraft
# uses: samuelmeuli/action-snapcraft@v1
# with:
# use_lxd: true
- name: Print environment
run: |
whoami
#snapcraft --version
echo "GitHub ref: $GITHUB_REF"
echo "GitHub event: $GITHUB_EVENT"
echo "BW Package Version: $PACKAGE_VERSION"
@ -202,7 +196,7 @@ jobs:
name: bw-linux-${{ env.PACKAGE_VERSION }}.zip
path: ./dist/snap
- name: Build Snap Package
- name: Setup Snap Package
run: |
cp -r stores/snap/* -t dist/snap
sed -i s/__version__/${{ env.PACKAGE_VERSION }}/g dist/snap/snapcraft.yaml
@ -217,7 +211,6 @@ jobs:
- name: Create checksum
run: |
#sg lxd -c 'snapcraft --use-lxd'
cd dist/snap
ls -alth
sha256sum bw_${{ env.PACKAGE_VERSION }}_amd64.snap | awk '{split($0, a); print a[1]}' > bw-snap-sha256-${{ env.PACKAGE_VERSION }}.txt

View File

@ -263,13 +263,9 @@ jobs:
- name: Checkout repo
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # 2.3.4
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@10d7d0a84d9d86098b19f872257df314b0bd8e2d # 1.2.0
- name: Print environment
run: |
whoami
snapcraft --version
echo "GitHub ref: $GITHUB_REF"
echo "GitHub event: $GITHUB_EVENT"
echo "BW Package Version: $PACKAGE_VERSION"
@ -283,7 +279,7 @@ jobs:
name: bw-linux-${{ env.PACKAGE_VERSION }}.zip
path: ./dist/snap
- name: Build Snap Package
- name: Setup Snap Package
run: |
cp -r stores/snap/* -t dist/snap
sed -i s/__version__/${{ env.PACKAGE_VERSION }}/g dist/snap/snapcraft.yaml
@ -298,7 +294,6 @@ jobs:
- name: Create checksum
run: |
#sg lxd -c 'snapcraft --use-lxd'
cd dist/snap
ls -alth
sha256sum bw_${{ env.PACKAGE_VERSION }}_amd64.snap | awk '{split($0, a); print a[1]}' > bw-snap-sha256-${{ env.PACKAGE_VERSION }}.txt