File tree Expand file tree Collapse file tree 2 files changed +65
-10
lines changed
Expand file tree Collapse file tree 2 files changed +65
-10
lines changed Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : test-and-build
4+ on :
5+ push :
6+ branches : ['*']
7+ tags : ['v*']
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ test-and-build :
14+ defaults :
15+ run :
16+ shell : bash
17+
18+ container :
19+ image : luzifer/archlinux
20+ env :
21+ CGO_ENABLED : 0
22+ GOPATH : /go
23+
24+ runs-on : ubuntu-latest
25+
26+ steps :
27+ - name : Enable custom AUR package repo
28+ run : echo -e "[luzifer]\nSigLevel = Never\nServer = https://archrepo.hub.luzifer.io/\$arch" >>/etc/pacman.conf
29+
30+ - name : Install required packages
31+ run : |
32+ pacman -Syy --noconfirm \
33+ awk \
34+ git \
35+ go \
36+ make \
37+ tar \
38+ zip
39+
40+ - uses : actions/checkout@v3
41+
42+ - name : Marking workdir safe
43+ run : git config --global --add safe.directory /__w/git-changerelease/git-changerelease
44+
45+ - name : Build release
46+ run : make publish
47+ env :
48+ FORCE_SKIP_UPLOAD : ' true'
49+ MOD_MODE : readonly
50+ NO_TESTS : ' true'
51+ PACKAGES : ' .'
52+
53+ - name : Extract changelog
54+ run : ' awk "/^#/ && ++c==2{exit}; /^#/f" "History.md" | tail -n +2 >release_changelog.md'
55+
56+ - name : Release
57+ uses : ncipollo/release-action@v1
58+ if : startsWith(github.ref, 'refs/tags/')
59+ with :
60+ artifacts : ' .build/*'
61+ bodyFile : release_changelog.md
62+ draft : false
63+ generateReleaseNotes : false
64+
65+ ...
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments