From 43cb1bba39586443e7fcb0d5d9eec65fb56edd6c Mon Sep 17 00:00:00 2001 From: Madison Rye Progress Date: Sun, 15 Mar 2026 14:48:11 -0700 Subject: [PATCH] Update maddybook, use gitea for deploys --- .gitea/workflows/deploy.yaml | 42 ++++++++++++++++++++++++++++++++++++ .gitignore | 2 ++ config.toml | 2 +- themes/maddybook | 2 +- 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..799de90 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,42 @@ +name: Deploy +run-name: ${{ gitea.actor }} is deploying ${{ gitea.repository }} +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + container: + image: docker.gitea.com/runner-images:ubuntu-latest + volumes: + - /opt/hugo/idumea.post-self.ink:/opt/hugo/idumea.post-self.ink + env: + DART_SASS_VERSION: 1.98.0 + steps: + - name: Check out repo + uses: actions/checkout@v6 + with: + submodules: 'true' + + - name: Install Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: '0.157.0' + extended: true + + - name: Install Dart Sass + run: | + curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz \ + && tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz \ + && cp -r dart-sass/* /usr/local/bin \ + && rm -rf dart-sass* \ + && sass --embedded --version + + - name: Build site + run: | + hugo build --gc --minify --baseURL https://idumea.post-self.ink --destination /opt/hugo/idumea.post-self.ink + + - name: Set permissions + run: chown -R www-data:www-data /opt/hugo/idumea.post-self.ink diff --git a/.gitignore b/.gitignore index e7e3002..3aea2c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .hugo_build.lock +content/perfect-edition public +resources/_gen diff --git a/config.toml b/config.toml index 514f08f..7f9f1c4 100644 --- a/config.toml +++ b/config.toml @@ -9,7 +9,7 @@ disablePathToLower = true path = "" [permalinks] - post = '/:filename/' + post = '/:contentbasename/' [params] author = 'Madison Rye Progress' diff --git a/themes/maddybook b/themes/maddybook index 08e9788..b3a328e 160000 --- a/themes/maddybook +++ b/themes/maddybook @@ -1 +1 @@ -Subproject commit 08e978819f0ee82bc647c4caf09c5acf898c175e +Subproject commit b3a328e733aebabf9e2482e7aa1e92f591cec7cf