2022-05-07 16:40:53 +00:00
|
|
|
image: alpine/latest
|
|
|
|
oauth: pages.sr.ht/PAGES:RW
|
|
|
|
environment:
|
|
|
|
site: morgan.mcmillian.dev
|
|
|
|
triggers:
|
|
|
|
- action: email
|
|
|
|
condition: always
|
|
|
|
to: Morgan McMillian <morgan@mcmillian.dev>
|
|
|
|
packages:
|
|
|
|
- go
|
|
|
|
- scdoc
|
|
|
|
sources:
|
2022-05-07 16:53:39 +00:00
|
|
|
- https://git.sr.ht/~thrrgilag/morgan.mcmillian.dev
|
2022-05-07 16:40:53 +00:00
|
|
|
- https://git.sr.ht/~adnano/kiln
|
|
|
|
- https://git.sr.ht/~adnano/mdtohtml
|
|
|
|
- https://git.sr.ht/~adnano/gmnitohtml
|
|
|
|
tasks:
|
|
|
|
- kiln: |
|
|
|
|
cd kiln
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
- mdtohtml: |
|
|
|
|
cd mdtohtml
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
- gmnitohtml: |
|
|
|
|
cd gmnitohtml
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
- build: |
|
|
|
|
cd $site
|
|
|
|
kiln build
|
|
|
|
- publish: |
|
|
|
|
tar -C $site/public/gemini -cvz . > gemini.tar.gz
|
|
|
|
tar -C $site/public/https -cvz . > https.tar.gz
|
|
|
|
acurl -f https://pages.sr.ht/publish/$site \
|
|
|
|
-Fcontent=@gemini.tar.gz \
|
|
|
|
-Fprotocol=GEMINI
|
|
|
|
acurl -f https://pages.sr.ht/publish/$site \
|
|
|
|
-Fcontent=@https.tar.gz \
|
|
|
|
-Fprotocol=HTTPS
|