-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix F-Droid build and release process (#3374)
- Loading branch information
Showing
4 changed files
with
112 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,7 +141,6 @@ jobs: | |
workflow: build.yml | ||
workflow_conclusion: success | ||
branch: ${{ needs.release.outputs.branch-name }} | ||
name: com.x8bit.bitwarden-fdroid.apk | ||
|
||
- name: Dry Run - Download F-Droid .apk artifact | ||
if: ${{ inputs.release_type == 'Dry Run' }} | ||
|
@@ -150,7 +149,6 @@ jobs: | |
workflow: build.yml | ||
workflow_conclusion: success | ||
branch: main | ||
name: com.x8bit.bitwarden-fdroid.apk | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | ||
|
@@ -186,6 +184,28 @@ jobs: | |
with: | ||
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }} | ||
|
||
- name: Retrieve secrets | ||
id: retrieve-secrets | ||
uses: bitwarden/gh-actions/get-keyvault-secrets@main | ||
with: | ||
keyvault: "bitwarden-ci" | ||
secrets: "github-gpg-private-key, | ||
github-gpg-private-key-passphrase, | ||
github-pat-bitwarden-devops-bot-mobile-fdroid" | ||
|
||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0 | ||
with: | ||
gpg_private_key: ${{ steps.retrieve-secrets.outputs.github-gpg-private-key }} | ||
passphrase: ${{ steps.retrieve-secrets.outputs.github-gpg-private-key-passphrase }} | ||
git_user_signingkey: true | ||
git_commit_gpgsign: true | ||
|
||
- name: Setup git | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "bitwarden-devops-bot" | ||
- name: Download secrets | ||
env: | ||
ACCOUNT_NAME: bitwardenci | ||
|
@@ -226,4 +246,8 @@ jobs: | |
- name: Deploy to gh-pages | ||
if: ${{ inputs.release_type != 'Dry Run' }} | ||
run: npm run deploy | ||
env: | ||
TOKEN: ${{ steps.retrieve-secrets.outputs.github-pat-bitwarden-devops-bot-mobile-fdroid }} | ||
run: | | ||
git remote set-url origin https://git:${TOKEN}@github.com/${GITHUB_REPOSITORY}.git | ||
npm run deploy -- -u "bitwarden-devops-bot <[email protected]>" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters