summaryrefslogtreecommitdiff
path: root/.build.yml
blob: 98ecf89f79a0d256d6a3b6d202498418c24f93e2a0f3e48100f436e2e11a2a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
packages:
- hut
- hugo
environment:
  site: nicholasjohnson.srht.site
tasks:
- generate: |
    python3 $site/themes/hugo-theme-nicksphere/scripts/generate.py
- package_website: |
    cd $site/website
    tar -cvz . > ../../site.tar.gz
- package_capsule: |
    cd $site/capsule
    tar -cvz . > ../../capsule.tar.gz
- upload_website: |
    hut pages publish -d $site site.tar.gz
- upload_capsule: |
    hut pages publish -d $site -p GEMINI capsule.tar.gz