Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3c99b5f48 | ||
|
|
5ce72c71e3 | ||
|
|
2b7079612e |
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@@ -28,6 +28,8 @@ jobs:
|
|||||||
ls -la /lib/x86_64-linux-gnu/libpython* 2>/dev/null || echo "Not found in /lib"
|
ls -la /lib/x86_64-linux-gnu/libpython* 2>/dev/null || echo "Not found in /lib"
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
run: pyinstaller gotify-tray.spec
|
run: pyinstaller gotify-tray.spec
|
||||||
|
- name: Set version
|
||||||
|
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
|
||||||
- name: Install Ruby and fpm
|
- name: Install Ruby and fpm
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
@@ -58,28 +60,30 @@ jobs:
|
|||||||
-m k.dries@protonmail.com \
|
-m k.dries@protonmail.com \
|
||||||
--description "Gotify Tray. A tray notification application for receiving messages from a Gotify server." \
|
--description "Gotify Tray. A tray notification application for receiving messages from a Gotify server." \
|
||||||
--category internet \
|
--category internet \
|
||||||
--version "${{github.ref_name#v}}" \
|
--version "$VERSION" \
|
||||||
--license GPLv3
|
--license GPLv3
|
||||||
- name: Check deb file
|
- name: Check deb file
|
||||||
run: ls -la dist/
|
run: ls -la dist/
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: gotify-tray_${{github.ref_name}}_amd64.deb
|
name: gotify-tray_${{ env.VERSION }}_amd64.deb
|
||||||
path: dist/gotify-tray_${{github.ref_name}}_amd64.deb
|
path: dist/gotify-tray_${{ env.VERSION }}_amd64.deb
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-deb]
|
needs: [build-deb]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set version
|
||||||
|
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: gotify-tray_${{github.ref_name}}_amd64.deb
|
name: gotify-tray_${{ env.VERSION }}_amd64.deb
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: marvinpinto/action-automatic-releases@latest
|
uses: marvinpinto/action-automatic-releases@latest
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITEA_TOKEN }}"
|
repo_token: "${{ secrets.GITEA_TOKEN }}"
|
||||||
prerelease: false
|
prerelease: false
|
||||||
files: |
|
files: |
|
||||||
gotify-tray_${{github.ref_name}}_amd64.deb
|
gotify-tray_${{ env.VERSION }}_amd64.deb
|
||||||
|
|||||||
Reference in New Issue
Block a user