-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#546] Support adding new devices directly from Github Action
- Loading branch information
1 parent
11790f1
commit e715a8a
Showing
2 changed files
with
71 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Test Add device and regenerate profiles with fastlane match | ||
|
||
# SECRETS needed: | ||
### SSH_PRIVATE_KEY for the match Repo | ||
### MATCH_PASSWORD | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
devices: | ||
description: 'JSON of devices. `{"Luka iPhone 6": "1234567890123456789012345678901234567890","Felix iPad Air 2": "abcdefghijklmnopqrstvuwxyzabcdefghijklmn"}`' | ||
required: true | ||
type: string | ||
platform: | ||
description: 'The platform' | ||
required: true | ||
default: 'ios' | ||
type: choice | ||
options: | ||
- ios | ||
- mac | ||
|
||
jobs: | ||
create_files: | ||
name: Create certificates and profiles | ||
runs-on: [self-hosted, macOS] | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install SSH key | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Bundle install | ||
run: bundle install | ||
|
||
- name: Add device and regenerate profiles with match | ||
run: bundle exec fastlane addDevicesGenerateProfiles | ||
env: | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASS }} | ||
DEVICES: ${{ inputs.devices }} | ||
PLATFORM: ${{ inputs.platform }} | ||
|
||
- name: Clean up keychain | ||
if: ${{ always() }} | ||
run: bundle exec fastlane remove_keychain | ||
continue-on-error: true |
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