blob: c9d5c823f05aaf4a6726d12ef170cbedcc0c3ab5 (
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
25
26
|
image: alpine/latest
oauth: pages.sr.ht/PAGES:RW
packages:
- yarn
- nodejs
tasks:
- build: |
cd a14m.srht.site
yarn install
yarn build
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
acurl -f https://pages.sr.ht/publish/a14m.me -Fcontent=@../site.tar.gz
acurl -f https://pages.sr.ht/publish/cv.a14m.me -Fcontent=@../site.tar.gz
acurl -f https://pages.sr.ht/publish/a14m.srht.site -Fcontent=@../site.tar.gz
|