actions: move oauth2.txt setup sooner

This commit is contained in:
Jay Lee
2024-09-23 20:40:38 -04:00
committed by GitHub
parent 1cdf160b35
commit 0f2eba580d

View File

@ -636,7 +636,12 @@ jobs:
- name: Configure service account auth - name: Configure service account auth
id: configserviceaccount id: configserviceaccount
env:
PASSCODE: ${{ secrets.PASSCODE }}
run: | run: |
source ../.github/actions/decrypt.sh ../.github/actions/creds.tar.xz.gpg creds.tar.xz "${GAMCFGDIR}"
mv -v "${GAMCFGDIR}/oauth2.txt-gam-gha-${JID}" "${GAMCFGDIR}/oauth2.txt"
rm -v $GAMCFGDIR/oauth2.txt-gam*
$gam create signjwtserviceaccount $gam create signjwtserviceaccount
- name: Upload gam.exe Windows for signing - name: Upload gam.exe Windows for signing
@ -724,12 +729,7 @@ jobs:
- name: Live API tests push only - name: Live API tests push only
if: (github.event_name == 'push' || github.event_name == 'schedule') if: (github.event_name == 'push' || github.event_name == 'schedule')
env:
PASSCODE: ${{ secrets.PASSCODE }}
run: | run: |
source ../.github/actions/decrypt.sh ../.github/actions/creds.tar.xz.gpg creds.tar.xz "${GAMCFGDIR}"
mv -v "${GAMCFGDIR}/oauth2.txt-gam-gha-${JID}" "${GAMCFGDIR}/oauth2.txt"
rm -v $GAMCFGDIR/oauth2.txt-gam*
export gam_user="gam-gha-${JID}@pdl.jaylee.us" export gam_user="gam-gha-${JID}@pdl.jaylee.us"
echo "gam_user=${gam_user}" >> $GITHUB_ENV echo "gam_user=${gam_user}" >> $GITHUB_ENV
$gam config customer_id "C03uzfv2s" save $gam config customer_id "C03uzfv2s" save