|
|
|
|
@ -31,6 +31,8 @@ jobs:
@@ -31,6 +31,8 @@ jobs:
|
|
|
|
|
package_version: ${{ steps.retrieve-version.outputs.package_version }} |
|
|
|
|
build_number: ${{ steps.increment-version.outputs.build_number }} |
|
|
|
|
safari_ref: ${{ steps.safari-ref.outputs.safari_ref }} |
|
|
|
|
rc_branch_exists: ${{ steps.branch-check.outputs.rc_branch_exists }} |
|
|
|
|
hotfix_branch_exists: ${{ steps.branch-check.outputs.hotfix_branch_exists }} |
|
|
|
|
steps: |
|
|
|
|
- name: Checkout repo |
|
|
|
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 |
|
|
|
|
@ -62,6 +64,21 @@ jobs:
@@ -62,6 +64,21 @@ jobs:
|
|
|
|
|
echo "Setting Safari Extension ref to $SAFARI_REF" |
|
|
|
|
echo "::set-output name=safari_ref::$SAFARI_REF" |
|
|
|
|
|
|
|
|
|
- name: Check if special branches exist |
|
|
|
|
id: branch-check |
|
|
|
|
run: | |
|
|
|
|
if [[ $(git ls-remote --heads origin rc) ]]; then |
|
|
|
|
echo "::set-output name=rc_branch_exists::1" |
|
|
|
|
else |
|
|
|
|
echo "::set-output name=rc_branch_exists::0" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [[ $(git ls-remote --heads origin hotfix) ]]; then |
|
|
|
|
echo "::set-output name=hotfix_branch_exists::1" |
|
|
|
|
else |
|
|
|
|
echo "::set-output name=hotfix_branch_exists::0" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
linux: |
|
|
|
|
name: Linux Build |
|
|
|
|
@ -215,9 +232,6 @@ jobs:
@@ -215,9 +232,6 @@ jobs:
|
|
|
|
|
run: npm run lint |
|
|
|
|
|
|
|
|
|
- name: Build & Sign (dev) |
|
|
|
|
run: | |
|
|
|
|
npm run build |
|
|
|
|
npm run pack:win |
|
|
|
|
env: |
|
|
|
|
ELECTRON_BUILDER_SIGN: 1 |
|
|
|
|
SIGNING_VAULT_URL: ${{ secrets.SIGNING_VAULT_URL }} |
|
|
|
|
@ -225,6 +239,9 @@ jobs:
@@ -225,6 +239,9 @@ jobs:
|
|
|
|
|
SIGNING_TENANT_ID: ${{ secrets.SIGNING_TENANT_ID }} |
|
|
|
|
SIGNING_CLIENT_SECRET: ${{ secrets.SIGNING_CLIENT_SECRET }} |
|
|
|
|
SIGNING_CERT_NAME: ${{ secrets.SIGNING_CERT_NAME }} |
|
|
|
|
run: | |
|
|
|
|
npm run build |
|
|
|
|
npm run pack:win |
|
|
|
|
|
|
|
|
|
- name: Rename appx files for store |
|
|
|
|
shell: pwsh |
|
|
|
|
@ -640,11 +657,11 @@ jobs:
@@ -640,11 +657,11 @@ jobs:
|
|
|
|
|
run: ./scripts/safari-build.ps1 -copyonly |
|
|
|
|
|
|
|
|
|
- name: Build application (dist) |
|
|
|
|
run: | |
|
|
|
|
npm run pack:mac |
|
|
|
|
env: |
|
|
|
|
APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }} |
|
|
|
|
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} |
|
|
|
|
run: | |
|
|
|
|
npm run pack:mac |
|
|
|
|
|
|
|
|
|
- name: Upload .zip artifact |
|
|
|
|
uses: actions/upload-artifact@ee69f02b3dfdecd58bb31b4d133da38ba6fe3700 # v2.2.3 |
|
|
|
|
@ -841,6 +858,18 @@ jobs:
@@ -841,6 +858,18 @@ jobs:
|
|
|
|
|
path: ./dist/mas-universal/Bitwarden-${{ env._PACKAGE_VERSION }}-universal.pkg |
|
|
|
|
if-no-files-found: error |
|
|
|
|
|
|
|
|
|
- name: Deploy to TestFlight |
|
|
|
|
env: |
|
|
|
|
APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }} |
|
|
|
|
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} |
|
|
|
|
if: | |
|
|
|
|
(github.ref == 'refs/heads/master' |
|
|
|
|
&& needs.setup.outputs.rc_branch_exists == 0 |
|
|
|
|
&& needs.setup.outputs.hotfix_branch_exists == 0) |
|
|
|
|
|| (github.ref == 'refs/heads/rc' && needs.setup.outputs.hotfix_branch_exists == 0) |
|
|
|
|
|| github.ref == 'refs/heads/hotfix' |
|
|
|
|
run: npm run upload:mas |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
macos-package-dev: |
|
|
|
|
name: MacOS Package Dev Release Asset |
|
|
|
|
|