Skip to content

Commit

Permalink
Add GitHub action for Debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
vhotspur committed Mar 20, 2024
1 parent c3a5d8e commit b52397c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Linux packages

on: [push, pull_request]

env:
PACKAGE_NAME: d3s-nagios-plugins-git
PACKAGE_MAINTAINER: vhotspur
PACKAGE_SUMMARY: "Collection of various Nagios plugins"
PACKAGE_VERSION: 1.0.0

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
- name: Prepare install for Debian
run: |
pip install --root ${{github.workspace}}/pkg-deb --prefix /usr .
find ${{github.workspace}}/pkg-deb
- uses: jiro4989/build-deb-action@v3
with:
package_root: ${{github.workspace}}/pkg-deb
package: ${{ env.PACKAGE_NAME }}
maintainer: ${{ env.PACKAGE_MAINTAINER }}
desc: '${{ env.PACKAGE_SUMMARY }}'
version: '${{ env.PACKAGE_VERSION }}'
arch: 'amd64'

- uses: actions/upload-artifact@v4
with:
name: deb-package
path: |
./d3s*.deb

0 comments on commit b52397c

Please sign in to comment.