Add .forgejo/workflows/publish.yml
This commit is contained in:
parent
cfd846287b
commit
1fcbeb108c
1 changed files with 22 additions and 0 deletions
22
.forgejo/workflows/publish.yml
Normal file
22
.forgejo/workflows/publish.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
name: Create release package
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
apt:
|
||||
name: Build Debian Package
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
- name: Generate DEB
|
||||
run: |
|
||||
python3 generate-deb.py
|
||||
- name: Upload package
|
||||
run: |
|
||||
curl --user swee:$SECRET --upload-file sweecrypt-gtk.deb https://git.swee.codes/api/packages/SweeZero/debian/pool/stable/main/upload
|
||||
env:
|
||||
SECRET: ${{ secrets.TOKEN }}
|
Loading…
Add table
Reference in a new issue