-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1017 Bytes
/
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
name: Release
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: true
- name: Gradle build
run: ./gradlew build
- name: Set PROJECT_VERSION
run: |
chmod +x scripts/version_name.sh
PROJECT_VERSION=$(./scripts/version_name.sh)
echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV
echo "Variable PROJECT_VERSION set to: ${PROJECT_VERSION}"
- name: Create Github release
uses: ncipollo/release-action@v1
with:
tag: ${{ env.PROJECT_VERSION }}
bodyFile: RELEASE_NOTES.md
draft: true
artifacts: "app/build/outputs/apk/release/app-release.apk"