~taavi/taavi.wtf

8806fd0df8a6058d5ad74897ac13b021a4e5f732 — Taavi Väänänen 14 days ago 79ff3ba
hello sourcehut, goodbye github
3 files changed, 24 insertions(+), 33 deletions(-)

A .build.yml
D .github/workflows/gh-pages.yml
M content/_index.md
A .build.yml => .build.yml +22 -0
@@ 0,0 1,22 @@
image: debian/bullseye
packages:
  - hugo
  - npm
sources:
  - https://git.sr.ht/~taavi/taavi.wtf
oauth: pages.sr.ht/PAGES:RW
environment:
  site: taavi.wtf
tasks:
  - install: |
      cd taavi.wtf
      npm ci
      cd themes/castor
      npm ci
  - build: |
      cd taavi.wtf
      NODE_ENV=production hugo --gc --minify --cleanDestinationDir
      tar -C public -cvz . > ../site.tar.gz
  - upload: |
      acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz


D .github/workflows/gh-pages.yml => .github/workflows/gh-pages.yml +0 -30
@@ 1,30 0,0 @@
name: github pages

on:
  push:
    branches:
      - master

jobs:
  build-deploy:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@master

      - name: Setup Hugo
        uses: peaceiris/actions-hugo@v2
        with:
          hugo-version: "0.82.0"

      - name: Install NPM dependencies
        run: npm install && cd themes/castor && npm install

      - name: Build
        run: NODE_ENV=production hugo --gc --minify --cleanDestinationDir

      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
          publish_branch: gh-pages
          publish_dir: ./public

M content/_index.md => content/_index.md +2 -3
@@ 35,9 35,8 @@ some older projects are still on [GitHub](https://github.com/supertassu/).
This website is built using [Hugo](https://gohugo.io) and styled with
[TailwindCSS](https://tailwindcss.com). It features a
[custom build](https://static.taavi.wtf/fonts/Iosevka/config.toml.txt) of the
[Iosevka](https://typeof.net/Iosevka) font. The source code is hosted on
[GitHub](https://github.com/supertassu/taaviwtf) (at least for now) and the site
itself is hosted on GitHub Pages (no IPv6 support, boo!).
[Iosevka](https://typeof.net/Iosevka) font. The website and its source
code is hosted on [sr.ht](https://sr.ht/~taavi/taavi.wtf).

It uses zero JavaScript and just a couple of kilobytes of CSS styles.
Most of the page size currently comes to the custom font, which takes