-
Notifications
You must be signed in to change notification settings - Fork 130
85 lines (72 loc) · 2.21 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Release Alkaa
on:
workflow_dispatch:
inputs:
tagname:
description: 'Version name'
required: true
default: 'v1.0.0'
type: string
env:
ALKAA_KEY_ALIAS: ${{ secrets.ALKAA_KEY_ALIAS }}
ALKAA_KEY_PASSWORD: ${{ secrets.ALKAA_KEY_PASSWORD }}
ALKAA_KEY_STORE_PASSWORD: ${{ secrets.ALKAA_KEY_STORE_PASSWORD }}
ALKAA_STORE_PATH: ${{ vars.ALKAA_STORE_PATH }}
jobs:
create-tag:
runs-on: ubuntu-latest
steps:
- name: Create tag
uses: actions/github-script@v7
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ github.event.inputs.tagname }}',
sha: context.sha
})
github-release:
name: "Release on GitHub"
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Gradle
run: ./gradlew assemble
- name: GitHub Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ github.event.inputs.tagname }}"
prerelease: false
files: |
./app/build/outputs/apk/debug/*.apk
./app/build/outputs/apk/release/*.apk
google-play-release:
name: "Release on Google Play"
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Gradle
run: ./gradlew bundleRelease
- name: Google Play Release
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: com.escodro.alkaa
releaseFiles: ./app/build/outputs/bundle/release/*.aab
track: production
status: completed
whatsNewDirectory: ./assets/whatsnew