diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 75ba89d..c2a65b8 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -211,11 +211,14 @@ jobs: uses: actions/download-artifact@v3 with: name: m3_lightmeter_ipa - + - name: Upload app to TestFlight + env: + API_KEY: AuthKey_${{ secrets.APP_STORE_API_KEY_ID }}.p8 run: | mkdir -p ~/private_keys - bash .github/scripts/restore_from_base64.sh "${{ secrets.APP_STORE_API_KEY }}" "~/private_keys/AuthKey_${{ secrets.APP_STORE_API_KEY_ID }}.p8" + bash .github/scripts/restore_from_base64.sh "${{ secrets.APP_STORE_API_KEY }}" "${{ env.API_KEY }}" + cp "${{ env.API_KEY }}" ~/private_keys xcrun altool --output-format xml --upload-app -f lightmeter.ipa -t ios --apiKey ${{ secrets.APP_STORE_API_KEY_ID }} --apiIssuer ${{ secrets.APP_STORE_ISSUER_ID }} cleanup: