-
Notifications
You must be signed in to change notification settings - Fork 3
/
.build.yml
31 lines (30 loc) · 892 Bytes
/
.build.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
image: alpine/edge
packages:
- git
- scdoc
- zig
secrets:
- deca56bc-45c7-46a3-b258-47d0809bf65d # ssh key for mirroring
environment:
GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no
sources:
- https://git.sr.ht/~gpanders/ztags
triggers:
- action: email
condition: failure
to: Gregory Anders <greg@gpanders.com>
tasks:
- test: |
cd ztags
zig build test
- docs: |
# Make sure there are no errors in the man page source
scdoc < ztags/ztags.1.scd >/dev/null
- mirror: |
# Don't run on GitHub PRs
if [ "$BUILD_REASON" = 'github-pr' ]; then
exit
fi
git clone --mirror https://git.sr.ht/~gpanders/ztags ztags.git
git -C ztags.git push --force --mirror git@github.com:gpanders/ztags
git -C ztags.git push --force --mirror git@codeberg.org:gpanders/ztags