forked from home-assistant/android
-
Notifications
You must be signed in to change notification settings - Fork 55
37 lines (35 loc) · 1.18 KB
/
main.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
name: Build and Release apk
on:
push:
tags:
- v*
jobs:
process:
name: all process
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
- name: Build with Gradle
run: chmod +x gradlew &&./gradlew aR
env:
PGY_API_KEY: ${{ secrets.PGY_API_KEY }}
AMAP_KEY: ${{ secrets.AMAP_KEY }}
NESTOR_KEYSTORE_ALIAS: ${{ secrets.KEY_ALIAS }}
NESTOR_KEYSTORE_PASSWORD: ${{ secrets.KEY_PASSWORD }}
- name: Release apk
uses: ncipollo/release-action@v1
with:
artifacts: "**/release/*.apk"
token: ${{ secrets.MY_GITHUB_ACCESSE }}
# - name: Upload To Pgyer
# uses: JantHsueh/upload-file-action@master
# with:
# url: https://www.pgyer.com/apiv2/app/upload
# method: POST
# forms: '{"_api_key":"${{ secrets.PGY_API_KEY }}","buildInstallType":1,"buildUpdateDescription":"支持详细的地理编码信息"}'
# fileForms: '{"file":"app/build/outputs/apk/full/release/app-full-release.apk"}'