File: release.yml

package info (click to toggle)
mdnsd 0.12-5
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 484 kB
  • sloc: ansic: 4,024; sh: 277; makefile: 107
file content (38 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download | duplicates (2)
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
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 doxygen libcmocka-dev
      - name: Creating Makefiles ...
        run: |
          ./autogen.sh
          ./configure --prefix=/tmp --enable-tests --with-systemd=/tmp/lib/systemd/system
      - name: Build release ...
        run: |
          make release
          ls -lF ../
          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: mdnsd ${{ github.ref_name }}
          bodyFile: "release.md"
          artifacts: "artifacts/*"