mirror of
https://github.com/openflocon/Flocon.git
synced 2026-05-08 16:24:53 +00:00
feat: [CI] generate jars (#227)
Co-authored-by: Florent Champigny <florent@bere.al>
This commit is contained in:
parent
c281377342
commit
dfd19febef
1 changed files with 38 additions and 1 deletions
39
.github/workflows/release.yml
vendored
39
.github/workflows/release.yml
vendored
|
|
@ -34,7 +34,7 @@ jobs:
|
|||
|
||||
- name: Build with Gradle
|
||||
working-directory: FloconDesktop
|
||||
run: ./gradlew packageDistributionForCurrentOS
|
||||
run: ./gradlew packageDistributionForCurrentOS packageUberJarForCurrentOS
|
||||
env:
|
||||
PROJECT_VERSION_NAME: ${{ github.ref_name }}
|
||||
|
||||
|
|
@ -60,6 +60,27 @@ jobs:
|
|||
name: windows-msi
|
||||
path: FloconDesktop/composeApp/build/compose/binaries/main/msi/*.msi
|
||||
|
||||
- name: Upload Linux Release Jar
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-jar
|
||||
path: FloconDesktop/composeApp/build/compose/jars/*.jar
|
||||
|
||||
- name: Upload macOS Release Jar
|
||||
if: matrix.os == 'macos-latest'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: macos-jar
|
||||
path: FloconDesktop/composeApp/build/compose/jars/*.jar
|
||||
|
||||
- name: Upload Windows Release Jar
|
||||
if: matrix.os == 'windows-latest'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: windows-jar
|
||||
path: FloconDesktop/composeApp/build/compose/jars/*.jar
|
||||
|
||||
release:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -86,6 +107,21 @@ jobs:
|
|||
with:
|
||||
name: windows-msi
|
||||
|
||||
- name: Download Linux jar
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: linux-jar
|
||||
|
||||
- name: Download macOS jar
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: macos-jar
|
||||
|
||||
- name: Download Windows jar
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: windows-jar
|
||||
|
||||
# List downloaded artifacts
|
||||
- name: Check downloaded artifacts
|
||||
run: ls -R
|
||||
|
|
@ -99,5 +135,6 @@ jobs:
|
|||
*.deb
|
||||
*.dmg
|
||||
*.msi
|
||||
*.jar
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue