Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f19f474df7 | ||
|
|
c49f761f93 | ||
|
|
ca05007197 |
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
@@ -33,6 +33,9 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y ruby-full
|
sudo apt-get install -y ruby-full
|
||||||
gem install fpm
|
gem install fpm
|
||||||
|
export PATH="$(ruby -e 'puts Gem.user_dir')/bin:$PATH"
|
||||||
|
- name: Check fpm
|
||||||
|
run: which fpm
|
||||||
- name: Build Debian package
|
- name: Build Debian package
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build/linux/opt
|
mkdir -p build/linux/opt
|
||||||
@@ -57,8 +60,19 @@ jobs:
|
|||||||
--category internet \
|
--category internet \
|
||||||
--version "${{github.ref_name#v}}" \
|
--version "${{github.ref_name#v}}" \
|
||||||
--license GPLv3
|
--license GPLv3
|
||||||
|
- name: Check deb file
|
||||||
|
run: ls -la dist/
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: gotify-tray_${{github.ref_name}}_amd64.deb
|
||||||
|
path: dist/gotify-tray_${{github.ref_name}}_amd64.deb
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [build-deb]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: gotify-tray_${{github.ref_name}}_amd64.deb
|
name: gotify-tray_${{github.ref_name}}_amd64.deb
|
||||||
path: dist/gotify-tray_${{github.ref_name}}_amd64.deb
|
path: dist/gotify-tray_${{github.ref_name}}_amd64.deb
|
||||||
@@ -68,13 +82,13 @@ jobs:
|
|||||||
needs: [build-deb]
|
needs: [build-deb]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: gotify-tray_${{github.ref_name}}_amd64.deb
|
name: gotify-tray_${{github.ref_name}}_amd64.deb
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: marvinpinto/action-automatic-releases@latest
|
uses: marvinpinto/action-automatic-releases@latest
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITEA_TOKEN }}"
|
||||||
prerelease: false
|
prerelease: false
|
||||||
files: |
|
files: |
|
||||||
gotify-tray_${{github.ref_name}}_amd64.deb
|
gotify-tray_${{github.ref_name}}_amd64.deb
|
||||||
|
|||||||
Reference in New Issue
Block a user