Adding debian build package workflow

- Note: The workflow runs the script and the script version info needs
  to be updated before every release. There needs to be some work to
  make the versioning automatic.
This commit is contained in:
ARS101
2024-05-30 23:05:41 +03:30
parent dd90e3a6f8
commit 3cdfbc9551

32
.github/workflows/debian-package.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: package namban for debian
on:
release:
types:
- created
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
container:
image: debian:12
steps:
- uses: actions/checkout@v3
- name: Install gh-cli
run: |
apt update
apt install gh
- name: Run the build script
run: ./package/debian/build.sh
- name: Upload the package file to the release
run: |
gh release upload ${{ github.event.release.tag_name }} ./namban*.deb -R ${{ github.repository }}
env:
GH_TOKEN: ${{ github.token }}