Skip to content

Commit 3d1456d

Browse files
committed
Replace repo-runner building
Signed-off-by: Knut Ahlers <knut@ahlers.me>
1 parent 4f23c1a commit 3d1456d

File tree

2 files changed

+65
-10
lines changed

2 files changed

+65
-10
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
...

.repo-runner.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)