11 Commits

Author SHA1 Message Date
kdusek
0d9d3f8d6c Downgrade to artifact actions v1 for Gitea compatibility
Some checks failed
build / build-linux (push) Successful in 15s
release / build-deb (push) Failing after 1m38s
release / release (push) Has been skipped
2025-12-08 00:19:19 +01:00
kdusek
a3c99b5f48 Use VERSION env var in fpm command
Some checks failed
build / build-linux (push) Successful in 15s
release / build-deb (push) Failing after 2m50s
release / release (push) Has been skipped
2025-12-07 23:56:46 +01:00
kdusek
5ce72c71e3 Use env.VERSION for artifact names
Some checks failed
build / build-linux (push) Successful in 15s
release / build-deb (push) Successful in 49s
release / release (push) Failing after 8s
2025-12-07 23:53:40 +01:00
kdusek
2b7079612e Fix artifact name to match version without v
Some checks failed
build / build-linux (push) Successful in 15s
release / build-deb (push) Failing after 49s
release / release (push) Has been skipped
2025-12-07 23:49:49 +01:00
kdusek
3d51013e48 Remove duplicate release job
Some checks failed
build / build-linux (push) Successful in 16s
release / build-deb (push) Successful in 1m2s
release / release (push) Failing after 16s
2025-12-07 23:43:34 +01:00
kdusek
f19f474df7 Change to v2 artifacts and Gitea token
All checks were successful
build / build-linux (push) Successful in 15s
2025-12-07 23:41:03 +01:00
kdusek
c49f761f93 Add fpm to PATH
Some checks failed
build / build-linux (push) Successful in 16s
release / build-deb (push) Successful in 49s
release / release (push) Failing after 8s
2025-12-07 23:36:36 +01:00
kdusek
ca05007197 Add debug steps for fpm and deb file
Some checks failed
build / build-linux (push) Successful in 16s
release / build-deb (push) Successful in 48s
release / release (push) Failing after 8s
2025-12-07 23:33:31 +01:00
kdusek
c2473ad714 Use tag version for deb package
Some checks failed
build / build-linux (push) Successful in 16s
release / build-deb (push) Successful in 48s
release / release (push) Failing after 8s
2025-12-07 23:30:43 +01:00
kdusek
56bebb4be7 Specify artifact name in download
Some checks failed
build / build-linux (push) Successful in 16s
release / build-deb (push) Successful in 1m29s
release / release (push) Failing after 8s
2025-12-07 23:27:13 +01:00
kdusek
e9bcac4f04 Install Ruby before fpm in CI
Some checks failed
build / build-linux (push) Successful in 16s
release / build-deb (push) Successful in 1m29s
release / release (push) Failing after 17s
2025-12-07 23:23:07 +01:00

View File

@@ -28,8 +28,16 @@ jobs:
ls -la /lib/x86_64-linux-gnu/libpython* 2>/dev/null || echo "Not found in /lib"
- name: Build binary
run: pyinstaller gotify-tray.spec
- name: Install fpm
run: gem install fpm
- name: Set version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: Install Ruby and fpm
run: |
sudo apt-get update
sudo apt-get install -y ruby-full
gem install fpm
export PATH="$(ruby -e 'puts Gem.user_dir')/bin:$PATH"
- name: Check fpm
run: which fpm
- name: Build Debian package
run: |
mkdir -p build/linux/opt
@@ -52,24 +60,30 @@ jobs:
-m k.dries@protonmail.com \
--description "Gotify Tray. A tray notification application for receiving messages from a Gotify server." \
--category internet \
--version "$(cat version.txt)" \
--version "$VERSION" \
--license GPLv3
- name: Check deb file
run: ls -la dist/
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v1
with:
name: gotify-tray_${{github.ref_name}}_amd64.deb
path: dist/gotify-tray_${{github.ref_name}}_amd64.deb
name: gotify-tray_${{ env.VERSION }}_amd64.deb
path: dist/gotify-tray_${{ env.VERSION }}_amd64.deb
release:
runs-on: ubuntu-latest
needs: [build-deb]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- name: Set version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- uses: actions/download-artifact@v1
with:
name: gotify-tray_${{ env.VERSION }}_amd64.deb
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
repo_token: "${{ secrets.GITEA_TOKEN }}"
prerelease: false
files: |
gotify-tray_${{github.ref_name}}_amd64.deb
gotify-tray_${{ env.VERSION }}_amd64.deb