[go: nahoru, domu]

Skip to content

Commit

Permalink
.github: initial release general
Browse files Browse the repository at this point in the history
The idea is to:

 1. Update VERSION
 2. Update ChangeLog.md with release info (remember link at bottom)
 3. Tag the commit with the new release vX.Y (optionally .Z)

When pushing the tag a this job is started, which runs the 'release'
target from the top Makefile, which in turn generates the Doxygen API
documentation, runs 'distcheck' and then uploades the resulting files
to the new GitHub release.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Oct 1, 2023
1 parent 93afa9f commit 303f243
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release General

on:
push:
tags:
- 'v[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@v3
- name: Installing dependencies ...
run: |
sudo apt-get update
sudo apt-get install -y build-essential autoconf automake tree doxygen libcmocka-dev
- name: Creating Makefiles ...
run: |
./autogen.sh
./configure --prefix= --enable-tests
- name: Build release ...
run: |
make release || (cat test/test-suite.log; false)
ls -lF ../
mkdir -p artifacts/
mv ../*.tar.* ../*.zip* 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
- name: Create and upload release ...
uses: ncipollo/release-action@v1
with:
name: libnet v${{ github.ref_name }}
bodyFile: "release.md"
artifacts: "artifacts/*"

0 comments on commit 303f243

Please sign in to comment.