fix(ci): private repo auth (#508)

This commit is contained in:
Hazel
2024-04-24 22:08:35 +01:00
committed by GitHub
parent e535a35fb9
commit 826199c055
3 changed files with 14 additions and 4 deletions
+6 -3
View File
@@ -23,9 +23,8 @@ jobs:
steps:
- name: Make git happy
if: ${{ matrix.target == 'macos' }}
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
git config --global --replace-all safe.directory $GITHUB_WORKSPACE
- name: Get checkout token
uses: actions/create-github-app-token@v1
@@ -43,6 +42,8 @@ jobs:
- name: Setup build environment
uses: ./.github/actions/setup-haxe
with:
gh-token: ${{ steps.app_token.outputs.token }}
- name: Build game
if: ${{ matrix.target == 'windows' }}
@@ -87,6 +88,7 @@ jobs:
with:
submodules: 'recursive'
token: ${{ steps.app_token.outputs.token }}
persist-credentials: false
- name: Config haxelib
run: |
@@ -103,7 +105,8 @@ jobs:
- if: ${{ steps.cache-hmm.outputs.cache-hit != 'true' }}
name: Install dependencies
run: |
haxelib --global run hmm install
git config --global url.https://x-access-token:${{ steps.app_token.outputs.token }}@github.com/.insteadOf https://github.com/
haxelib --global run hmm install -q
- if: ${{ matrix.target != 'html5' }}
name: Restore hxcpp cache