Add flatpak package in release
This commit is contained in:
@@ -96,11 +96,20 @@ jobs:
|
|||||||
mkdir -p deps
|
mkdir -p deps
|
||||||
tar --file server-build-deps.tar.xz --directory=deps --extract
|
tar --file server-build-deps.tar.xz --directory=deps --extract
|
||||||
|
|
||||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
# TODO: replace with version > v6.3 when it's released
|
||||||
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@b8be6bc0ede43cb3a2cc55895654312b14f84a0d
|
||||||
with:
|
with:
|
||||||
manifest-path: flatpak/org.meumeu.wivrn-server.yml
|
manifest-path: flatpak/org.meumeu.wivrn-server.yml
|
||||||
bundle: wivrn-server.flatpak
|
bundle: wivrn-server.flatpak
|
||||||
|
upload-artifact: false
|
||||||
|
|
||||||
|
# Upload manually instead of using flatpak/flatpak-github-actions/flatpak-builder because
|
||||||
|
# it uses upload-artifact@v3
|
||||||
|
- name: Publish artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: wivrn-server-x86_64
|
||||||
|
path: wivrn-server.flatpak
|
||||||
|
|
||||||
build-test-client:
|
build-test-client:
|
||||||
name: Linux client
|
name: Linux client
|
||||||
@@ -243,16 +252,22 @@ jobs:
|
|||||||
name: Create release
|
name: Create release
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
if: success() && startsWith(github.ref, 'refs/tags/')
|
if: success() && startsWith(github.ref, 'refs/tags/')
|
||||||
needs: build-android
|
needs: [build-android, build-server-flatpak]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Download artifacts (APK)
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: apk
|
path: apk
|
||||||
pattern: '*-Release'
|
pattern: '*-Release'
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
|
- name: Download artifacts (flatpak)
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: wivrn-server-x86_64
|
||||||
|
path: flatpak
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
@@ -261,3 +276,4 @@ jobs:
|
|||||||
draft: true
|
draft: true
|
||||||
files: |
|
files: |
|
||||||
apk/*.apk
|
apk/*.apk
|
||||||
|
flatpak/*.flatpak
|
||||||
|
|||||||
Reference in New Issue
Block a user