Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6a69c16
update publish-github-release to every hour when triggered by publish…
AmyLGalles Sep 16, 2025
27680f1
add dry-run options
AmyLGalles Sep 17, 2025
60e61d2
fix dry run settings
AmyLGalles Sep 17, 2025
e038dc4
fixing step title and trying enable
AmyLGalles Sep 17, 2025
6fc7131
add dry run to run name
AmyLGalles Sep 17, 2025
651907a
give elevated actions permissions
AmyLGalles Sep 17, 2025
525b3c3
test enable disable again
AmyLGalles Sep 17, 2025
367a2d3
test enable disable again
AmyLGalles Sep 17, 2025
500f27d
add verbose to github enable
AmyLGalles Sep 17, 2025
635463b
test enable disable again
AmyLGalles Sep 17, 2025
b3a224a
final test of enable disable
AmyLGalles Sep 17, 2025
8b739d0
remove test option
AmyLGalles Sep 17, 2025
c9d91fe
add specific branch for testing
AmyLGalles Sep 17, 2025
03bcbcb
add write permissions
AmyLGalles Sep 17, 2025
0a86115
remove test settings
AmyLGalles Sep 30, 2025
f7c3b1a
restore setting to run weekdays
AmyLGalles Sep 30, 2025
3f792c9
add test options
AmyLGalles Oct 1, 2025
9206b7a
remove default dry run
AmyLGalles Oct 1, 2025
35100e4
remove test options
AmyLGalles Oct 2, 2025
2a86726
splitting password manager and authenticator workflows
AmyLGalles Oct 2, 2025
f0670f5
enable publish workflow only if success
AmyLGalles Oct 2, 2025
a321a4e
Merge branch 'main' into agalles/BRE-1118-update-mobile-release
AmyLGalles Oct 3, 2025
8be80cc
Merge branch 'main' into agalles/BRE-1118-update-mobile-release
AmyLGalles Oct 3, 2025
dba5f41
remove unnecessary permissions
AmyLGalles Oct 3, 2025
05d2661
changing pwm to bwpm
AmyLGalles Oct 3, 2025
d1b0296
fixing if then logic
AmyLGalles Oct 8, 2025
7c6f5eb
Merge branch 'main' into agalles/BRE-1118-update-mobile-release
AmyLGalles Oct 14, 2025
765fb0e
Merge branch 'main' into agalles/BRE-1118-update-mobile-release
AmyLGalles Oct 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/publish-github-release-bwa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish GitHub Release as newest

on:
workflow_dispatch:
schedule:
- cron: '0 * * * 1-5' # Every hour on the hour on weekdays

permissions:
contents: write
actions: read
id-token: write

jobs:
publish-release-authenticator:
name: Publish Authenticator Release
uses: bitwarden/gh-actions/.github/workflows/_publish-mobile-github-release.yml@main
with:
workflow_name: "publish-github-release-bwa.yml"
credentials_filename: "appstoreconnect-fastlane.json"
project_type: ios
check_release_command: >
bundle exec fastlane ios get_latest_version api_key_path:$CREDENTIALS_PATH app_identifier:com.bitwarden.authenticator
secrets: inherit
23 changes: 23 additions & 0 deletions .github/workflows/publish-github-release-bwpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish GitHub Release as newest

on:
workflow_dispatch:
schedule:
- cron: '0 * * * 1-5' # Every hour on the hour on weekdays

permissions:
contents: write
actions: read
id-token: write

jobs:
publish-release-password-manager:
name: Publish Password Manager Release
uses: bitwarden/gh-actions/.github/workflows/_publish-mobile-github-release.yml@main
with:
workflow_name: "publish-github-release-bwpm.yml"
credentials_filename: "appstoreconnect-fastlane.json"
project_type: ios
check_release_command: >
bundle exec fastlane ios get_latest_version api_key_path:$CREDENTIALS_PATH app_identifier:com.8bit.bitwarden
secrets: inherit
36 changes: 0 additions & 36 deletions .github/workflows/publish-github-release.yml

This file was deleted.

25 changes: 24 additions & 1 deletion .github/workflows/publish-store.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

name: Publish to iOS App Store
run-name: Publish ${{ inputs.product }} build ${{ inputs.build-number }} version ${{inputs.build-version}}
run-name: >
${{ inputs.dry-run && ' (Dry Run)' || '' }} Publish ${{ inputs.product }} build ${{ inputs.build-number }} version ${{ inputs.build-version }}

on:
workflow_dispatch:
Expand Down Expand Up @@ -30,6 +31,10 @@ on:
description: "Automatically submit release for review"
type: boolean
default: true
dry-run:
description: "Dry-Run, Run the workflow without publishing to the store"
type: boolean
default: false

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -39,6 +44,7 @@ permissions:
contents: read
packages: read
id-token: write
actions: write

jobs:
publish:
Expand Down Expand Up @@ -99,6 +105,8 @@ jobs:
EOF

- name: Upload app to with Fastlane
id: publish
if: ${{ inputs.dry-run == false }}
env:
VERSION_CODE: ${{ inputs.build-number }}
VERSION_NAME: ${{inputs.build-version}}
Expand Down Expand Up @@ -128,3 +136,18 @@ jobs:
changelog:"$CHANGELOG" \
metadata_path:"$METADATA_PATH" \
submit_release:"$SUBMIT_RELEASE"

- name: Enable Publish Github Release Workflow
if: ${{ steps.publish.conclusion == 'success' }}
env:
PRODUCT: ${{ inputs.product }}
run: |
if ${{ inputs.dry-run }} ; then
gh workflow view publish-github-release.yml
exit 0
fi
if [ "$PRODUCT" = "Password Manager" ]; then
gh workflow enable publish-github-release-bwpm.yml
elif [ "$PRODUCT" = "Authenticator" ]; then
gh workflow enable publish-github-release-bwa.yml
fi
Comment on lines +149 to +153
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ Should this have a fallback with an echo saying that the product is not recognized or something like that? i.e. when it's not neither Password Manager nor Authenticator.