mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
testing building and packaging before moving on to publishing
This commit is contained in:
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@@ -30,13 +30,6 @@ jobs:
|
|||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Cache Dist
|
|
||||||
id: cached-dist
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: dist
|
|
||||||
key: ${{ runner.os }}-${{ hashFiles('dist/') }}
|
|
||||||
|
|
||||||
- name: Setup Windows builder
|
- name: Setup Windows builder
|
||||||
run: choco install checksum --no-progress
|
run: choco install checksum --no-progress
|
||||||
|
|
||||||
@@ -100,6 +93,9 @@ jobs:
|
|||||||
- name: Package Linux
|
- name: Package Linux
|
||||||
run: npm run package:lin
|
run: npm run package:lin
|
||||||
|
|
||||||
|
- name: Package Chocolatey
|
||||||
|
run: .\scripts\choco-pack.ps1
|
||||||
|
|
||||||
- name: Zip
|
- name: Zip
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
@@ -119,10 +115,8 @@ jobs:
|
|||||||
Throw "Version test failed."
|
Throw "Version test failed."
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Package & Create checksums
|
- name: Create checksums
|
||||||
run: |
|
run: |
|
||||||
.\scripts\choco-pack.ps1
|
|
||||||
|
|
||||||
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
|
||||||
checksum -f="./dist/bw-macos-${env:PACKAGE_VERSION}.zip" `
|
checksum -f="./dist/bw-macos-${env:PACKAGE_VERSION}.zip" `
|
||||||
@@ -179,6 +173,9 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Chocolatey
|
- name: Setup Chocolatey
|
||||||
run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
|
run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
|
||||||
env:
|
env:
|
||||||
@@ -251,6 +248,9 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup NPM
|
- name: Setup NPM
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user