Skip to content

Commit 4fb0189

Browse files
author
Ron de las Alas
committed
ci: Pull Matchfile info from secrets
ci: try pulling env vars into the matchfile
1 parent 8b50650 commit 4fb0189

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/ci-cd.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@ jobs:
1717
matrix:
1818
os:
1919
- macos-latest
20-
- windows-latest
20+
# - windows-latest
2121
runs-on: ${{ matrix.os }}
2222
defaults:
2323
run:
2424
shell: bash
2525
environment:
2626
name: ${{ matrix.os }}
2727
env:
28-
SCRATCH_SHOULD_SIGN: ${{ github.ref_name == 'main' }}
29-
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
28+
SCRATCH_SHOULD_SIGN: ${{ github.ref_name == 'gha' }}
3029
AC_USERNAME: ${{ github.ref_name == 'main' && secrets.AC_USERNAME }}
3130
AC_PASSWORD: ${{ github.ref_name == 'main' && secrets.AC_PASSWORD }}
3231
steps:
@@ -59,7 +58,11 @@ jobs:
5958
with:
6059
ssh-private-key: ${{ secrets.FASTLANE_DEPLOY_KEY }}
6160
- name: Fastlane
62-
if: matrix.os == 'macos-latest' && env.SCRATCH_SHOULD_SIGN == true
61+
env:
62+
GIT_URL: ${{ secrets.FL_GIT_URL }}
63+
STORAGE_MODE: ${{secrets.FL_STORAGE_MODE}}
64+
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
65+
if: matrix.os == 'macos-latest' && env.SCRATCH_SHOULD_SIGN == 'true'
6366
run: fastlane circleci
6467
- name: Build
6568
timeout-minutes: 30 # macOS notarization can take a while
@@ -73,7 +76,7 @@ jobs:
7376
PYTHON_PATH: ${{ matrix.os == 'macos-latest' && '/Users/runner/.pyenv/versions/2.7.18/bin/python'}}
7477
run: npm run ${{ env.SCRATCH_SHOULD_SIGN == true && 'dist' || 'distDev' }}
7578
- name: Zip MAS-Dev build
76-
if: matrix.os == 'macos-latest' && env.SCRATCH_SHOULD_SIGN == true
79+
if: matrix.os == 'macos-latest' && env.SCRATCH_SHOULD_SIGN == 'true'
7780
run: |
7881
NPM_APP_VERSION="`node -pe "require('./package.json').version"`"
7982
cd dist/mas-dev

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ npm-*
2727
/locale
2828

2929
# Fastlane
30-
# **/fastlane/Matchfile
30+
## **/fastlane/Matchfile
3131
**/fastlane/report.xml
3232
**/fastlane/Preview.html
3333
**/fastlane/screenshots

fastlane/Matchfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
git_url("[email protected]:scratchfoundation/scratch-fastlane-match-files.git")
2-
storage_mode("git")
1+
git_url(ENV.fetch("GIT_URL"))
2+
storage_mode(ENV.fetch("STORAGE_MODE"))
33
type("development") # The default type, can be: appstore, adhoc, enterprise or development
44
# app_identifier(["tools.fastlane.app", "tools.fastlane.app2"])
55
# username("[email protected]") # Your Apple Developer Portal username

0 commit comments

Comments
 (0)