-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.16 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Release
on:
push:
tags:
- "v*.*.*"
env:
PACKAGE_NAME: d3s-nagios-plugins
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'
- name: Setup release notes
run: ./contrib/get-release-notes.sh ${{ env.PACKAGE_VERSION }} >gh-release-body.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: gh-release-body.txt
files: |
msim*.deb
msim*.rpm