mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-10-11 10:18:42 +02:00
debug ASC API key
This commit is contained in:
1 parent
0ac158eb4a
commit
fe0f298c0e
1 file changed
+28
-6
@@ -240,12 +240,34 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload to App Store Connect
|
- name: Upload to App Store Connect
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||||
uses: apple-actions/upload-testflight-build@v1
|
env:
|
||||||
with:
|
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
|
||||||
app-path: Runner.ipa
|
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
|
||||||
issuer-id: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
|
APP_STORE_CONNECT_API_KEY_BASE64: ${{ secrets.APP_STORE_CONNECT_API_KEY_BASE64 }}
|
||||||
api-key-id: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
|
run: |
|
||||||
api-private-key: ${{ secrets.APP_STORE_CONNECT_API_KEY_BASE64 }}
|
# Create the private keys directory
|
||||||
|
mkdir -p ~/private_keys
|
||||||
|
|
||||||
|
# Decode and save the API key
|
||||||
|
echo -n "$APP_STORE_CONNECT_API_KEY_BASE64" | base64 --decode > ~/private_keys/AuthKey_${APP_STORE_CONNECT_API_KEY_ID}.p8
|
||||||
|
|
||||||
|
# Debug: Check if file was created and has content
|
||||||
|
echo "=== API Key File Debug ==="
|
||||||
|
ls -la ~/private_keys/
|
||||||
|
file ~/private_keys/AuthKey_${APP_STORE_CONNECT_API_KEY_ID}.p8
|
||||||
|
echo "First few lines of key file:"
|
||||||
|
head -3 ~/private_keys/AuthKey_${APP_STORE_CONNECT_API_KEY_ID}.p8
|
||||||
|
echo "=========================="
|
||||||
|
|
||||||
|
# Upload using xcrun altool
|
||||||
|
xcrun altool --upload-app \
|
||||||
|
--type ios \
|
||||||
|
--file Runner.ipa \
|
||||||
|
--apiKey $APP_STORE_CONNECT_API_KEY_ID \
|
||||||
|
--apiIssuer $APP_STORE_CONNECT_ISSUER_ID
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
rm -rf ~/private_keys
|
||||||
|
|
||||||
attach-to-release:
|
attach-to-release:
|
||||||
name: Attach Assets to Release
|
name: Attach Assets to Release
|
||||||
|
|||||||
Reference in new issue
Block a user