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:
32
.github/workflows/debian-package.yml
vendored
Normal file
32
.github/workflows/debian-package.yml
vendored
Normal 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 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user