This also refactors the release job to use ncipollo/release-action@v1 instead of the deprecated actions/create-release@v1 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: Release General
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
release:
|
|
name: Build and upload release tarball
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Installing dependencies ...
|
|
run: |
|
|
sudo apt-get -y update
|
|
sudo apt-get -y install tree tshark valgrind
|
|
- name: Creating Makefiles ...
|
|
run: |
|
|
./autogen.sh
|
|
./configure --prefix=/tmp --with-systemd=/tmp/lib/systemd/system
|
|
- name: Build release ...
|
|
run: |
|
|
make release
|
|
mkdir -p artifacts/
|
|
mv ../*.tar.* artifacts/
|
|
- name: Extract ChangeLog entry ...
|
|
run: |
|
|
awk '/-----*/{if (x == 1) exit; x=1;next}x' ChangeLog.md \
|
|
|head -n -1 > release.md
|
|
cat release.md
|
|
- uses: ncipollo/release-action@v1
|
|
with:
|
|
name: sysklogd ${{ github.ref_name }}
|
|
bodyFile: "release.md"
|
|
artifacts: "artifacts/*"
|