Debian Codegraph @

.github/workflows/release.yaml

raw
1 name: Tag and Release
2
3 on:
4 push:
5 branches: [ release ]
6
7 workflow_dispatch:
8
9
10 jobs:
11
12 Release:
13
14 runs-on: ubuntu-latest
15
16 steps:
17
18 - name: Checkout the repo
19 uses: actions/checkout@v2
20
21 - name: Extract version
22 run: |
23 version="$(grep -E '^[0-9]+_[0-9]+_[0-9]+' VERSION | sed 's/_/./g')"
24 echo $version
25 echo ::set-output name=apbs-version::${version}
26 echo ::set-output name=apbs-tag::v${version}
27 ./.extract_section.sh -v ${version} -f docs/releases.rst > this_release.rst
28 cat this_release.rst
29 shell: bash
30 id: extract-version
31
32 - name: Convert release text to markdown
33 uses: docker://pandoc/core:2.16.2
34 with:
35 args: >-
36 --standalone
37 --from rst
38 --to markdown
39 --output=this_release.md
40 this_release.rst
41
42 - name: Check release text
43 run: cat this_release.md
44
45 - name: Create tag
46 uses: tvdias/[email protected]
47 with:
48 repo-token: "${{ secrets.RELEASE_TOKEN }}"
49 tag: ${{ steps.extract-version.outputs.apbs-tag }}
50
51 - name: Create Release
52 uses: softprops/action-gh-release@v1
53 env:
54 GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
55 with:
56 body_path: this_release.md
57 tag_name: ${{ steps.extract-version.outputs.apbs-tag }}