Skip to content

Commit

Permalink
Add appimage release
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikKalkoken committed Jul 6, 2024
1 parent f2f25ca commit 680d63b
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
GOVERSION: "1.22.4"
NAME: "jsonviewer"
FULLNAME: "JSON Viewer"
APPIMAGENAME: "JSON_Viewer-x86_64"
PREFIX: "jsonviewer-${{ github.ref_name }}"

on: push
Expand Down Expand Up @@ -56,16 +57,26 @@ jobs:
- name: Package Fyne app
run: fyne package -os linux

- name: Build AppImage
run: ./build_appimage.sh

- name: Rename package
run: mv "${{ env.FULLNAME }}.tar.xz" ${{ env.PREFIX }}-linux-amd64.tar.xz

- uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }}-linux
name: ${{ env.NAME }}-linux-1
path: ${{ env.PREFIX }}-linux-amd64.tar.xz
if-no-files-found: error
overwrite: true

- uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }}-linux-2
path: ${{ env.APPIMAGENAME }}.AppImage
if-no-files-found: error
overwrite: true

package_windows:
if: startsWith(github.ref, 'refs/tags/')
needs: test
Expand Down Expand Up @@ -163,8 +174,9 @@ jobs:
- name: Create release
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
fail_on_unmatched_files: false
files: |
${{ env.PREFIX }}-darwin-x64.zip
${{ env.PREFIX }}-linux-amd64.tar.xz
${{ env.PREFIX }}-windows-x64.zip
${{ env.APPIMAGENAME }}.AppImage
${{ env.PREFIX }}-linux-amd64.tar.xz
${{ env.PREFIX }}-darwin-x64.zip

0 comments on commit 680d63b

Please sign in to comment.