-
Notifications
You must be signed in to change notification settings - Fork 13
57 lines (51 loc) · 1.64 KB
/
release.yml
File metadata and controls
57 lines (51 loc) · 1.64 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: Publish Release
on:
workflow_dispatch:
push:
branches: [ main ]
release:
types: [published]
jobs:
build-deps:
uses: ./.github/workflows/build-dependencies.yml
build:
runs-on: ubuntu-latest
needs:
- build-deps
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: setup build
shell: bash
run: |
CI_CACHE=${GITHUB_WORKSPACE}/.ci_cache
VCPKG_BINARY_SOURCES="clear;files,${GITHUB_WORKSPACE}/.ci_cache,readwrite"
mkdir -p ${CI_CACHE}
echo "CI_CACHE=${CI_CACHE}" >> ${GITHUB_ENV}
echo "VCPKG_BINARY_SOURCES=${VCPKG_BINARY_SOURCES}" >> ${GITHUB_ENV}
- name: Build App
uses: ./.github/actions/gradle
with:
buildType: Release
experimental: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }}
keystore: ${{ secrets.RELEASE_KEYSTORE }}
keystorePassword: ${{ secrets.RELEASE_KEYSTORE_PASSWORD }}
- name: Upload Release artifacts
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
fail_on_unmatched_files: true
files: |
app/build/outputs/bundle/release/*.aab
app/build/outputs/apk/release/*.apk
- name: publish experimental release
if: github.ref == 'refs/heads/main'
uses: pyTooling/Actions/releaser@v6.7.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: experimental
rm: true
files: |
app/build/outputs/bundle/release/*.aab
app/build/outputs/apk/release/*.apk