-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (57 loc) · 1.81 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Release
on:
push:
tags:
- '*'
jobs:
gradle:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
artifact_name: memosc_${{ github.ref_name }}_amd64.deb
asset_name: memosc_${{ github.ref_name }}_amd64.deb
type: Deb
dir: deb
- os: windows-latest
artifact_name: memosc-${{ github.ref_name }}.exe
asset_name: memosc-${{ github.ref_name }}.exe
type: Exe
dir: exe
- os: macos-latest
artifact_name: memosc-${{ github.ref_name }}.dmg
asset_name: memosc-${{ github.ref_name }}.dmg
type: Dmg
dir: dmg
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: oracle
java-version: 19
cache: 'gradle'
- uses: ConorMacBride/install-package@v1
with:
apt: fakeroot
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- uses: SebRollen/[email protected]
id: read_toml
with:
file: 'gradle/libs.versions.toml'
field: 'versions.packageVersion'
- name: Execute Gradle build
run: ./gradlew packageRelease${{ matrix.type }} --no-daemon
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
env:
FILE_NAME: ${{steps.read_toml.outputs.value}}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: composeApp/build/compose/binaries/main-release/${{ matrix.dir }}/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
# tag: ${{ github.ref }}
overwrite: true
#composeApp/build/compose/binaries/main/dmg/memosc-1.0.0.dmg