-
Notifications
You must be signed in to change notification settings - Fork 27
89 lines (73 loc) · 2.48 KB
/
play-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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: APM Manual AAB Release
# be warned there is no version bump!
on:
workflow_dispatch:
jobs:
buildAAB:
runs-on: ubuntu-latest
name: build AAB
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: python version_bump.py
run: |
python version_bump.py
- name: commit
run: |
git config --global user.email [email protected]
git config --global user.name lovegaoshi
git commit -m "build: release version bump" -a
- name: Get branch name
run: |
# Short name for current branch. For PRs, use target branch (base ref)
GIT_BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}
echo "GIT_BRANCH=$GIT_BRANCH" >> $GITHUB_ENV
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: set up JDK 18
uses: actions/setup-java@v3
with:
java-version: 18
distribution: temurin
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: 'Create env file'
run: |
echo "${{ secrets.ENV_FILE }}" > .env
echo "APPSTORE=true" >> .env
- name: alias yarn.cmd to yarn
run: alias yarn.cmd="yarn"
- name: Add Build Sign Keys
run: |
git submodule update --init --recursive
echo "${{ secrets.RELEASE_SIGN_PWD }}" >> ./android/gradle.properties
- name: python fixHTTP
run: |
python fixHTTP.py
- name: WGet Build Sign jks
uses: wei/wget@v1
with:
args: -O ./android/app/noxupload.jks ${{ secrets.REMOTE_KEYFILE_URL }}
- name: Install dependencies
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 10
command: yarn
- name: clean generated builds
run: rm -rf android/app/build/generated/
- name: gradle build AAB
run: cd android && chmod +x gradlew && ./gradlew bundleRelease
- name: Push changes to master
uses: ad-m/github-push-action@master
- uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
packageName: com.noxplay.noxplayer
releaseFiles: android/app/build/outputs/bundle/release/app-release.aab
track: internal