mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-06-15 22:58:41 -04:00
ci: Pull Matchfile info from secrets
ci: try pulling env vars into the matchfile
This commit is contained in:
parent
8b506506ff
commit
4fb01893d1
3 changed files with 11 additions and 8 deletions
13
.github/workflows/ci-cd.yml
vendored
13
.github/workflows/ci-cd.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
matrix:
|
||||
os:
|
||||
- macos-latest
|
||||
- windows-latest
|
||||
# - windows-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
run:
|
||||
|
@ -25,8 +25,7 @@ jobs:
|
|||
environment:
|
||||
name: ${{ matrix.os }}
|
||||
env:
|
||||
SCRATCH_SHOULD_SIGN: ${{ github.ref_name == 'main' }}
|
||||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||
SCRATCH_SHOULD_SIGN: ${{ github.ref_name == 'gha' }}
|
||||
AC_USERNAME: ${{ github.ref_name == 'main' && secrets.AC_USERNAME }}
|
||||
AC_PASSWORD: ${{ github.ref_name == 'main' && secrets.AC_PASSWORD }}
|
||||
steps:
|
||||
|
@ -59,7 +58,11 @@ jobs:
|
|||
with:
|
||||
ssh-private-key: ${{ secrets.FASTLANE_DEPLOY_KEY }}
|
||||
- name: Fastlane
|
||||
if: matrix.os == 'macos-latest' && env.SCRATCH_SHOULD_SIGN == true
|
||||
env:
|
||||
GIT_URL: ${{ secrets.FL_GIT_URL }}
|
||||
STORAGE_MODE: ${{secrets.FL_STORAGE_MODE}}
|
||||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||
if: matrix.os == 'macos-latest' && env.SCRATCH_SHOULD_SIGN == 'true'
|
||||
run: fastlane circleci
|
||||
- name: Build
|
||||
timeout-minutes: 30 # macOS notarization can take a while
|
||||
|
@ -73,7 +76,7 @@ jobs:
|
|||
PYTHON_PATH: ${{ matrix.os == 'macos-latest' && '/Users/runner/.pyenv/versions/2.7.18/bin/python'}}
|
||||
run: npm run ${{ env.SCRATCH_SHOULD_SIGN == true && 'dist' || 'distDev' }}
|
||||
- name: Zip MAS-Dev build
|
||||
if: matrix.os == 'macos-latest' && env.SCRATCH_SHOULD_SIGN == true
|
||||
if: matrix.os == 'macos-latest' && env.SCRATCH_SHOULD_SIGN == 'true'
|
||||
run: |
|
||||
NPM_APP_VERSION="`node -pe "require('./package.json').version"`"
|
||||
cd dist/mas-dev
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -27,7 +27,7 @@ npm-*
|
|||
/locale
|
||||
|
||||
# Fastlane
|
||||
# **/fastlane/Matchfile
|
||||
## **/fastlane/Matchfile
|
||||
**/fastlane/report.xml
|
||||
**/fastlane/Preview.html
|
||||
**/fastlane/screenshots
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
git_url("git@github.com:scratchfoundation/scratch-fastlane-match-files.git")
|
||||
storage_mode("git")
|
||||
git_url(ENV.fetch("GIT_URL"))
|
||||
storage_mode(ENV.fetch("STORAGE_MODE"))
|
||||
type("development") # The default type, can be: appstore, adhoc, enterprise or development
|
||||
# app_identifier(["tools.fastlane.app", "tools.fastlane.app2"])
|
||||
# username("user@fastlane.tools") # Your Apple Developer Portal username
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue