forked from PhilJay/MPAndroidChart
-
Notifications
You must be signed in to change notification settings - Fork 34
63 lines (58 loc) · 1.79 KB
/
Android-CI-release.yml
File metadata and controls
63 lines (58 loc) · 1.79 KB
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
name: Release
on:
push:
tags:
- '*'
jobs:
build:
name: Publish release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: true
- name: Install JDK
uses: actions/setup-java@v5
with:
distribution: "adopt"
java-version: 17
- name: Get the version
id: tagger
uses: jimschubert/query-tag-action@v2
with:
skip-unshallow: 'true'
abbrev: false
commit-ish: HEAD
- name: Install Android SDK
uses: hannesa2/action-android/install-sdk@0.1.16.7
- name: Build project
run: ./gradlew assembleRelease
env:
VERSION: ${{ github.ref }}
# - name: Publish to github package
# run: |
# signing/decrypt.sh
# cat signing/gradle_secure.properties >> gradle.properties
# ./gradlew publish
# env:
# CRYPT_PASS: ${{ secrets.CRYPT_PASS }}
# GITHUBACTOR: ${{ secrets.GITHUBACTOR }}
# GITHUBTOKEN: ${{ secrets.GITHUBTOKEN }}
# - name: Publish mavenCentral (stage)
# run: |
# signing/decrypt.sh
# cat signing/gradle_secure.properties >> gradle.properties
# ./gradlew chartLib:publishMavenPublicationToMavenCentralRepository
# env:
# CRYPT_PASS: ${{ secrets.CRYPT_PASS }}
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{steps.tagger.outputs.tag}}
name: ${{steps.tagger.outputs.tag}}
generate_release_notes: true
body: ${{steps.github_release.outputs.changelog}}
files: chartLib/build/outputs/aar/chartLib-release.aar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}