mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
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:
parent
45eaa24b0c
commit
a1738c57dd
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -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
|
||||
|
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user