-
Notifications
You must be signed in to change notification settings - Fork 265
46 lines (40 loc) · 1.16 KB
/
release-source.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
---
name: Release Source
# yamllint disable rule:line-length
# yamllint disable-line rule:truthy
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
jobs:
release:
name: Release Source
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get Version
id: get_version
run: echo '::set-output name=version::'$(cat VERSION)
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install autopoint build-essential gettext libpango1.0-dev ghostscript
- name: Build Dist
run: |
./bootstrap
./configure
make dist
perl -077 -ne '/^(.+?\n.+?\n.+?)\nRRDtool/s && print $1' CHANGES > releasenotes
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "rrdtool-${{ steps.get_version.outputs.version }}.tar.gz"
artifactContentType: "application/tar+gzip"
bodyFile: releasenotes
discussionCategory: "Release Issues"
name: "RRDtool Version ${{ steps.get_version.outputs.version }}"
token: ${{ secrets.GITHUB_TOKEN }}