blob: 172dd048393090778e4a7ff0115e3030728fca86 (
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
|
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.srht.site site.tar.gz
|