-
Notifications
You must be signed in to change notification settings - Fork 13
57 lines (47 loc) · 1.67 KB
/
Copy pathgithub-release.yml
File metadata and controls
57 lines (47 loc) · 1.67 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
name: github-release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-[a-z0-9]+"
permissions:
contents: read
jobs:
release-samples:
name: Create GitHub release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
with:
persist-credentials: false
- name: Setup environment
uses: ./.github/actions/setup-gradle-environment-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Decode key store
run: |
echo $APP_SIGNING_KEY_STORE > encoded-keystore.txt
base64 -d encoded-keystore.txt > $APP_SIGNING_KEY_STORE_PATH
env:
APP_SIGNING_KEY_STORE: ${{ secrets.APP_SIGNING_KEY_STORE }}
APP_SIGNING_KEY_STORE_PATH: ${{ secrets.APP_SIGNING_KEY_STORE_PATH }}
- name: Build samples
run: |
./gradlew :buildSamples --stacktrace
env:
APP_SIGNING_KEY_ALIAS: ${{ secrets.APP_SIGNING_KEY_ALIAS }}
APP_SIGNING_KEY_PASSWORD: ${{ secrets.APP_SIGNING_KEY_PASSWORD }}
APP_SIGNING_KEY_STORE_PASSWORD: ${{ secrets.APP_SIGNING_KEY_STORE_PASSWORD }}
APP_SIGNING_KEY_STORE_PATH: ${{ secrets.APP_SIGNING_KEY_STORE_PATH }}
- name: Extract release changelog
run: |
./gradlew :releaseChangelog
- name: Create GitHub release
run: |
gh release create "$TAG" release/* --title "$TAG" --notes-file changelog.txt
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.ref_name }}