-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (35 loc) · 1005 Bytes
/
build-linux-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
name: Build and Release Linux
on:
push:
tags:
- '*'
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '17'
- name: Build Compose Desktop
run: |
chmod 0777 ./gradlew
./gradlew packageDeb
./gradlew packageRpm
./gradlew packagePkg
./gradlew packageAppImage
ls build/compose/binaries/main
- name: Upload to Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/compose/binaries/main/deb/*
build/compose/binaries/main/rpm/*
build/compose/binaries/main/pkg/*
build/compose/binaries/main/appimage/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}