-
Notifications
You must be signed in to change notification settings - Fork 0
/
.build.yml
55 lines (53 loc) · 1.18 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# SPDX-License-Identifier: CC0-1.0
#
# SPDX-FileCopyrightText: Tristan Partin <[email protected]>
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
packages:
- go
- hugo
- hut
- reuse
- shellcheck
- shfmt
- yarn
environment:
site: tristan957.srht.site
sources:
- https://git.sr.ht/~tristan957/tristan.partin.io
tasks:
- reuse: |
cd tristan.partin.io
reuse lint
- shellcheck: |
cd tristan.partin.io
./scripts/shellcheck.sh
- shfmt: |
cd tristan.partin.io
./scripts/shfmt.sh
- yarn: |
cd tristan.partin.io
yarn
- markdownlint: |
cd tristan.partin.io
yarn run markdownlint:check
- prettier: |
cd tristan.partin.io
yarn run prettier:check
- openring: |
cd tristan.partin.io
./scripts/openring/build.sh
- build: |
cd tristan.partin.io
./scripts/openring/generate.sh
hugo --baseURL "https://$site"
- package: |
branch="$(basename "$GIT_REF")"
if [ "$branch" != 'master' ]; then
complete-build
fi
cd tristan.partin.io
tar -C public -cvz . > site.tar.gz
- upload: |
cd tristan.partin.io
hut pages publish -d "$site" site.tar.gz