blob: b94fe748e54e8eb0c4f64a6df2922495df7016ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
image: alpine/latest
oauth: pages.sr.ht/PAGES:RW
packages:
- hugo
- hut
tasks:
- build: |
cd a14m.srht.site
hugo
tar -C public -cvz . > site.tar.gz
- publish: |
set +x
cd a14m.srht.site
REF=`git describe --exact-match --all ||:`
echo "Current Ref: $REF"
if [[ ! `echo $REF | awk '/main$/'` ]]; then
echo "Skipping publishing step. only publishing 'main' branch"
exit 0
fi
hut pages publish -d a14m.me site.tar.gz
hut pages publish -d a14m.srht.site site.tar.gz
|