Skip to content

Commit

Permalink
Added deploy_test again
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Bates committed Oct 4, 2024
1 parent e938cdd commit 4fbedb8
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/alpha.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Alpha

on:
workflow_dispatch:
push:
branches:
- develop
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/deploy_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy Test

on:
push:
branches:
- deploy-testflight-builds

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
deploy:
name: Deploy
needs: sonar-scan
runs-on: macos-14

steps:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # pin@v4.1.5
with:
lfs: 'true'
fetch-depth: 0

- name: Setup Ruby
uses: ruby/setup-ruby@82dd21cb955e5633e70976c289b2e3b01c0f18db # pin@v1.176.0
with:
bundler-cache: true

- name: Select xcode
run: xcodes select

- name: Deploy
run: bundle exec fastlane alpha
env:
APP_STORE_KEY_CONTENT: ${{ secrets.APP_STORE_KEY_CONTENT }}
APP_STORE_KEY_ID: ${{ secrets.APP_STORE_KEY_ID }}
APP_STORE_KEY_ISSUER_ID: ${{ secrets.APP_STORE_KEY_ISSUER_ID }}
APP_STORE_USERNAME: ${{ secrets.APP_STORE_USERNAME }}
MATCH_CERTIFICATE_TOKEN: ${{ secrets.MATCH_CERTIFICATE_TOKEN }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
4 changes: 4 additions & 0 deletions Fastlane/.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ default: &DEFAULTS
- iPhone 15 Pro (17.5)
match: &MATCH_DEFAULTS
method: "adhoc"
deliver: &DELIVER_DEFAULTS
groups:
- GOV.UK APP
- GOV.UK OTHER

unit:
<<: *DEFAULTS
Expand Down
2 changes: 1 addition & 1 deletion Fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ platform :ios do
distribute_external: true,
notify_external_testers: true,
expire_previous_builds: false,
groups: ['GOV.UK APP', 'GOV.UK OTHER'],
groups: configuration.deliver_groups,
changelog: 'Automated internal build',
api_key: app_store_key
)
Expand Down
4 changes: 4 additions & 0 deletions Fastlane/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def deliver_key_content
ENV['APP_STORE_KEY_CONTENT']
end

def deliver_groups
setting(:deliver, :groups)
end

def match_method
setting(:match, :method)
end
Expand Down

0 comments on commit 4fbedb8

Please sign in to comment.