-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (37 loc) · 1.09 KB
/
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
42
43
44
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 +x ./gradlew
./gradlew packageDeb
./gradlew packageRpm
ls build/compose/binaries/main
- name: Rename
run: |
cd build/compose/binaries/main/deb
for file in *.deb; do mv "$file" "$(basename "$file" .deb)-linux.deb"; done
cd ../rpm
for file in *.rpm; do mv "$file" "$(basename "$file" .rpm)-linux.rpm"; done
- 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/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}