Skip to content

Commit

Permalink
NEVISACCESSAPP-6267: consolidate gh secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-toth-leeder committed Nov 19, 2024
1 parent 2469af6 commit 1e487c3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ on:
workflow_dispatch:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
MATCH_GIT_URL: ${{ vars.MATCH_GIT_URL }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
DEVELOPER_PORTAL_TEAM_ID: ${{ secrets.DEVELOPER_PORTAL_TEAM_ID }}
CODE_SIGNING_IDENTITY: ${{ secrets.CODE_SIGNING_IDENTITY }}
PROVISIONING_PROFILE_SPECIFIER: ${{ secrets.PROVISIONING_PROFILE_SPECIFIER }}
TEMP_KEYCHAIN_NAME: ${{ vars.TEMP_KEYCHAIN_NAME }}
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
HOST_NAME: ${{ secrets.HOST_NAME }}
SLACK_WEBHOOK_URL: ${{ vars.SLACK_WEBHOOK_URL }}

CURRENT_BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
RUBY_VERSION: '3.1'
XCODE_VERSION: '15.4'
Expand Down Expand Up @@ -39,23 +52,10 @@ jobs:
- name: Generate Build Number
uses: onyxmueller/build-tag-number@v1
with:
token: ${{secrets.GITHUB_TOKEN}}
token: ${{ env.GITHUB_TOKEN }}

# Build & Distribute
- name: Run Fastlane
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MATCH_GIT_AUTHORIZATION: ${{ secrets.MATCH_GIT_AUTHORIZATION }}
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
DEVELOPER_PORTAL_TEAM_ID: ${{ secrets.DEVELOPER_PORTAL_TEAM_ID }}
CODE_SIGNING_IDENTITY: ${{ secrets.CODE_SIGNING_IDENTITY }}
PROVISIONING_PROFILE_SPECIFIER: ${{ secrets.PROVISIONING_PROFILE_SPECIFIER }}
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
TEMP_KEYCHAIN_NAME: ${{ secrets.TEMP_KEYCHAIN_NAME }}
HOST_NAME: ${{ secrets.HOST_NAME }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
uses: maierj/[email protected]
with:
lane: 'main'
1 change: 0 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ platform :ios do
app_identifier: app_identifier,
git_url: ENV["MATCH_GIT_URL"],
git_branch: "main",
git_basic_authorization: Base64.strict_encode64(ENV["MATCH_GIT_AUTHORIZATION"]),
keychain_name: keychain_name,
keychain_password: keychain_password
)
Expand Down

0 comments on commit 1e487c3

Please sign in to comment.