Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make 'Publish Release' action publish both the AppImage and binary #444

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions .github/workflows/ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ jobs:

- name: Test PokeFinder
run: ctest --test-dir ${{github.workspace}}/build -V

- name: Package PokeFinder binary
run: |
mkdir upload
mv build/Source/PokeFinder .
tar czf PokeFinder-linux.tar.gz PokeFinder

- uses: actions/upload-artifact@v4
with:
name: PokeFinder-linux
path: PokeFinder

- name: Fetch AppImage tools
run: |
Expand All @@ -58,7 +47,7 @@ jobs:
run: |
export QMAKE=$QT_ROOT_DIR/bin/qmake
./linuxdeploy-x86_64.AppImage --appdir AppDir --plugin qt \
-e PokeFinder \
-e build/source/PokeFinder \
-d Source/Form/io.github.admiral_fish.pokefinder.desktop \
-i Source/Form/Images/Icon/pokefinder_16x16.png \
-i Source/Form/Images/Icon/pokefinder_24x24.png \
Expand All @@ -69,14 +58,27 @@ jobs:
mkdir AppDir/usr/share/metainfo
cp Source/Form/io.github.admiral_fish.pokefinder.appdata.xml AppDir/usr/share/metainfo/
./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage
mv PokéFinder-x86_64.AppImage PokeFinder-x86_64.AppImage

- name: Package PokeFinder
run: |
tar czf PokeFinder-linux.tar.gz -C ./build/Source/ PokeFinder
tar czf PokeFinder-linux-AppImage.tar.gz PokeFinder-x86_64.AppImage

- uses: actions/upload-artifact@v4
with:
name: PokeFinder-linux
path: ./build/Source/PokeFinder

- uses: actions/upload-artifact@v4
with:
name: PokeFinder-linux-appimage
path: PokéFinder-x86_64.AppImage
name: PokeFinder-linux-AppImage
path: PokeFinder-x86_64.AppImage

- name: Publish Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: PokeFinder-linux.tar.gz
files: |
PokeFinder-linux.tar.gz
PokeFinder-linux-AppImage.tar.gz
Loading