site

personal website, served at mordaunt.dev/site
Log | Files | Refs

publish.yml (943B)


      1 image: alpine/edge
      2 oauth: pages.sr.ht/PAGES:RW
      3 packages:
      4 - hut
      5 - hugo
      6 tasks:
      7 - package: |
      8     cd site
      9     # Built against jackmordaunt.com, not the baseURL in hugo.toml, because
     10     # a Hugo site bakes its baseURL into every asset path it emits and this
     11     # tarball is served at the root of the alias. The canonical home is
     12     # mordaunt.dev/site/, which the server builds for itself from this
     13     # repository as a flake input and does not take from here - so the
     14     # config keeps that URL and only this one build overrides it.
     15     #
     16     # This goes away when jackmordaunt.com's DNS moves to the server: the
     17     # alias is then a path-preserving redirect into mordaunt.dev/site/ and
     18     # there is only one copy of the site again.
     19     hugo -b https://jackmordaunt.com/
     20     tar -C public -cvz . > ../site.tar.gz
     21 - upload: |
     22     hut pages publish -d jackmordaunt.srht.site site.tar.gz
     23     hut pages publish -d jackmordaunt.com site.tar.gz