-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (99 loc) · 3.07 KB
/
releaser.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
---
name: Releaser
"on":
push:
tags:
- "v[0-9].[0-9].[0-9]+"
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout project
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
fetch-depth: 0
- name: Generate changelog latest
uses: orhun/git-cliff-action@1199a3c11df7d17b37c84c2f5daa6d773716177a
id: cliff
with:
config: cliff.toml
args: -vv --latest --strip header
- name: Get tag
shell: bash
run: |
echo "TAG=${GITHUB_REF:10}" >> "$GITHUB_ENV"
- name: Create release
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87
with:
name: pgrank ${{ env.TAG }}
body: ${{ steps.cliff.outputs.content }}
generate_release_notes: true
doxygen:
name: Doxygen html
needs:
- release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout project
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- name: Download doxygen-awesome-css theme
uses: robinraju/release-downloader@c39a3b234af58f0cf85888573d361fb6fa281534
with:
repository: "jothepro/doxygen-awesome-css"
latest: true
tarBall: true
zipBall: false
extract: true
out-file-path: "."
- name: Rename doxygen-awesome-css
run: |
rm -f ./*.tar.gz
mv ./*doxygen-awesome-css* doxygen-awesome-css/
- name: Create html docs
run: |
set -x
sudo apt install doxygen
doxygen
sub="$(sed -n "/<a href=\"https:\/\/github.com\/andros21\/pgrank\">/,/<\/a>/p" README.md)"
sed -i "s|<a href=\"https://github.com/andros21/pgrank\">\(.*\)</a>|$(echo ${sub})|" html/index.html
# add cyto.js examples
cp -r examples/caibg/cyto/ html/caibg/
- name: Publish to gh-pages (main)
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: html/
changelog:
name: Changelog
needs:
- doxygen
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout project
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
fetch-depth: 0
- name: Get tag
shell: bash
run: |
echo "TAG=${GITHUB_REF:10}" >> "$GITHUB_ENV"
- name: Refresh changelog
uses: orhun/git-cliff-action@1199a3c11df7d17b37c84c2f5daa6d773716177a
with:
config: cliff.toml
args: --verbose --tag ${{ env.TAG }}
env:
OUTPUT: CHANGELOG.md
- name: Commit changelog
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5
with:
message: "chore(CHANGELOG): add pgrank ${{ env.TAG }} changes"
add: "CHANGELOG.md"
new_branch: master