From dd6512ad98a1b6d1141838ef0665c255bea41882 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 11 May 2025 18:23:12 +0200 Subject: [PATCH] .github: add release workflow Signed-off-by: Joachim Wiberg --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f2a173d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: Release General + +on: + push: + tags: + - '[0-9]+.[0-9]+*' + +jobs: + release: + name: Build and upload release tarball + if: startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Creating Makefiles ... + run: | + ./autogen.sh + ./configure --prefix= + - 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: Editline v${{ github.ref_name }} + bodyFile: "release.md" + artifacts: "artifacts/*"