-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 2.05 KB
/
upload-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: 'Upload Build'
on:
workflow_dispatch:
inputs:
run-id:
description: 'GitHub Actions run ID to use artifacts from'
required: true
type: number
permissions:
actions: read
jobs:
upload-ios:
runs-on: macos-latest
steps:
- uses: actions/download-artifact@v4
with:
name: release-ios
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ inputs.run-id }}
- name: Decrypt build
run: gpg --decrypt --output=./Eterna.ipa --passphrase ${{ secrets.ARTIFACT_ENCRYPTION_KEY }} --batch release-ios
- name: Set up App Store Connect API key
env:
APP_STORE_CONNECT_API_KEY_BASE64: ${{ secrets.APP_STORE_CONNECT_API_KEY_BASE64 }}
run: echo $APP_STORE_CONNECT_API_KEY_BASE64 | base64 --decode > "$RUNNER_TEMP/AuthKey_${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}.p8"
- name: Upload to App Store
run: API_PRIVATE_KEYS_DIR=$RUNNER_TEMP xcrun altool --upload-package Eterna.ipa --type ios --apiIssuer ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} --apiKey ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
upload-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ci
submodules: false
persist-credentials: false
sparse-checkout: .github/**/*
sparse-checkout-cone-mode: false
- uses: actions/download-artifact@v4
with:
name: release-android
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ inputs.run-id }}
- name: Decrypt build
run: gpg --decrypt --output=./app-release.aab --passphrase ${{ secrets.ARTIFACT_ENCRYPTION_KEY }} --batch release-android
- name: Install dependencies for upload script
run: npm ci
working-directory: ./.github/workflows/google-play
- run: ls .github/workflows/google-play
- name: Upload to Google Play
run: node ./.github/workflows/google-play/src/index.js upload ${{ secrets.GOOGLE_PLAY_DEVELOPER_API_KEY }} ./app-release.aab