Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
155e3bf
Add lane to get latest published version from App Store
michalchecinski May 16, 2025
c548523
Add GitHub Actions workflow for publishing releases
michalchecinski May 16, 2025
53b3440
Update status of latest prerelease
michalchecinski May 16, 2025
054209e
Enable scheduled GitHub release workflow for weekdays
michalchecinski May 16, 2025
9825ed2
Rename job from 'create-release' to 'publish-release' in GitHub Actioโ€ฆ
michalchecinski May 19, 2025
43ab803
Refactor GitHub Actions workflow to use `gh` CLI for fetching latest โ€ฆ
michalchecinski May 20, 2025
60deb4f
Rename steps in GitHub Actions workflow to reflect draft release handโ€ฆ
michalchecinski May 20, 2025
89af3f9
Update GitHub release step to mark release as non-draft
michalchecinski May 20, 2025
40ae989
Refactor version check logic to use environment variables for clarity
michalchecinski May 20, 2025
7c3cd83
Add GitHub Actions workflows for publishing Authenticator and Passworโ€ฆ
michalchecinski May 30, 2025
31425c1
Add latest build number to GitHub environment in get_latest_version lane
michalchecinski Jun 3, 2025
994b329
Refactor GitHub Actions workflows: consolidate release jobs for Autheโ€ฆ
michalchecinski Jun 3, 2025
c67c73a
Fix workflow names in publish GitHub release actions for consistency
michalchecinski Jun 3, 2025
6b00bec
Refactor get_latest_version lane to use correct method and variable nโ€ฆ
michalchecinski Jun 3, 2025
296bffa
Refactor get_latest_version lane to improve logging and remove unneceโ€ฆ
michalchecinski Jun 5, 2025
be120f4
Add project_type parameter to release jobs in publish GitHub release โ€ฆ
michalchecinski Jun 6, 2025
dbbf004
Fix comments
michalchecinski Jun 27, 2025
2bd5066
Add app_identifier
michalchecinski Jun 27, 2025
050eca3
Merge branch 'main' into BRE-769-Use-Fastlane-to-keep-github-releasesโ€ฆ
michalchecinski Jul 3, 2025
d700aaa
Fix workflow name
michalchecinski Jul 3, 2025
a159557
Fix fastfile
michalchecinski Jul 3, 2025
22eac06
Trying to fix the error
michalchecinski Jul 3, 2025
162be99
Fix
michalchecinski Jul 3, 2025
a287fd8
Merge branch 'main' into BRE-769-Use-Fastlane-to-keep-github-releasesโ€ฆ
michalchecinski Jul 8, 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
35 changes: 28 additions & 7 deletions .github/workflows/publish-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,34 @@ name: Publish GitHub Release as newest

on:
workflow_dispatch:
schedule:
- cron: '0 3 * * 1-5'

permissions: {}
permissions:
contents: write
actions: read

jobs:
stub:
runs-on: ubuntu-24.04
name: Stub
steps:
- name: Stub
run: echo "This is a stub job to trigger the workflow."
publish-release-password-manager:
name: Publish Password Manager Release
uses: bitwarden/gh-actions/.github/workflows/_publish-mobile-github-release.yml@main
with:
release_name: "Password Manager"
workflow_name: "publish-github-release.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

publish-release-authenticator:
name: Publish Authenticator Release
uses: bitwarden/gh-actions/.github/workflows/_publish-mobile-github-release.yml@main
with:
release_name: "Authenticator"
workflow_name: "publish-github-release.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
13 changes: 13 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -431,4 +431,17 @@ platform :ios do |options|
file.write(project_yaml.to_yaml)
end
end

desc "Get latest published version"
lane :get_latest_version do |options|
app_store_build_number(
api_key_path: options[:api_key_path],
app_identifier: options[:app_identifier]
)
latest_version_name = lane_context[SharedValues::LATEST_VERSION]
latest_version_number = lane_context[SharedValues::LATEST_BUILD_NUMBER]

UI.message("version_name: #{latest_version_name}")
UI.message("version_number: #{latest_version_number}")
end
end