-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PIA-000: Add workflow to archive a development build
- Loading branch information
1 parent
4618b55
commit 019f8b6
Showing
2 changed files
with
100 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: development_build | ||
on: | ||
push: | ||
branches: | ||
- PIA-000_create_dev_build | ||
|
||
workflow_dispatch: | ||
concurrency: | ||
group: "${{ github.ref }}" | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
runs-on: macos-13 | ||
env: | ||
CERTIFICATE_PASSWORD: ${{ secrets.DEVELOPER_CERTIFICATE_PASSWORD }} | ||
KEYCHAIN_NAME: ${{ secrets.KEYCHAIN_NAME }} | ||
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} | ||
APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} | ||
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }} | ||
APP_STORE_CONNECT_KEY: ${{ secrets.APP_STORE_CONNECT_KEY }} | ||
|
||
steps: | ||
- name: Setup Git credentials | ||
run: | | ||
git config --global url."https://${{ secrets.ORG_GITHUB_USERNAME }}:${{ secrets.ORG_GITHUB_TOKEN }}@github.com/".insteadOf "[email protected]:" | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Select XCode version | ||
run: sudo xcode-select -s /Applications/Xcode_14.3.1.app | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.0.2 | ||
|
||
- name: Install Fastlane | ||
run: gem install fastlane | ||
|
||
- name: Decode Developer Certificates | ||
run: echo "${{ secrets.DEVELOPER_IOS_CERTIFICATE }}" | base64 --decode > ./fastlane/Certificate.p12 | ||
|
||
- name: Set up development certificates and profiles | ||
run: bundle exec fastlane get_development_profiles > /dev/null 2>&1 | ||
|
||
- name: Create artifacts dir | ||
run: mkdir artifacts | ||
|
||
- name: Archive development build | ||
run: bundle exec fastlane development_build | ||
|
||
- name: Upload development ipa file | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: artifacts/ | ||
|
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