-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.46 KB
/
auto-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
name: auto release
on:
push:
branches: [ master ]
jobs:
build_job:
name: build apk job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo $SIGN_KEY_CONTENT | base64 -di > android/app/my-password-key.jks
env:
SIGN_KEY_CONTENT: ${{ secrets.SIGN_KEY_CONTENT }}
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- run: flutter build apk --target-platform=android-arm64
env:
SIGN_KEY_STORE_PASSWORD: ${{ secrets.SIGN_KEY_STORE_PASSWORD }}
SIGN_KEY_PASSWORD: ${{ secrets.SIGN_KEY_PASSWORD }}
SIGN_KEY_ALIAS: ${{ secrets.SIGN_KEY_ALIAS }}
SIGN_KEY_PATH: my-password-key.jks
- uses: its404/[email protected]
id: get_version
- uses: 1466587594/get-current-time@v2
id: get_time
with:
format: YYYYMMDD.HHmmss
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.ACTION_TOKEN }}
tag: v${{steps.get_version.outputs.version_number}}_beta_${{steps.get_time.outputs.formattedTime}}
body: "auto release when push"
artifacts: "build/app/outputs/apk/release/*.apk"
prerelease: true
- uses: dev-drprasad/[email protected]
with:
keep_latest: 3
delete_tags: true
delete_tag_pattern: _beta_
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}