forked from r0adkll/sign-android-release
-
Notifications
You must be signed in to change notification settings - Fork 9
66 lines (56 loc) · 1.54 KB
/
release.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
57
58
59
60
61
62
63
64
65
66
name: "Test"
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
name: Test action
steps:
- uses: actions/checkout@v4
name: Checkout code
- name: Run build
run: npm run build
- name: Ensure no pending Git changes
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "There are pending Git changes after running the build. Did you forget to commit the .js files?"
exit 1
fi
- name: Run tests
run: npm run test
- name: Load test key
id: get_key
run: |
value=$(cat __tests__/test_key_b64.txt)
echo "text=$value" >> $GITHUB_OUTPUT
- uses: ./
name: zipalign and Sign APK
with:
releaseDirectory: __tests__/apk-zip
signingKeyBase64: ${{ steps.get_key.outputs.text }}
alias: test_key
keyStorePassword: android
keyPassword: android
zipAlign: true
- uses: ./
name: Sign APK
with:
releaseDirectory: __tests__/apk
signingKeyBase64: ${{ steps.get_key.outputs.text }}
alias: test_key
keyStorePassword: android
keyPassword: android
- uses: ./
name: Sign AAB
with:
releaseDirectory: __tests__/aab
signingKeyBase64: ${{ steps.get_key.outputs.text }}
alias: test_key
keyStorePassword: android
keyPassword: android