summaryrefslogtreecommitdiff
path: root/.forgejo/workflows/deploy.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.forgejo/workflows/deploy.yaml')
-rw-r--r--.forgejo/workflows/deploy.yaml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml
new file mode 100644
index 0000000..e6d3a03
--- /dev/null
+++ b/.forgejo/workflows/deploy.yaml
@@ -0,0 +1,33 @@
+name: Deploy Hugo to Codeberg Pages
+
+on:
+ push:
+ branches: [main]
+ workflow_dispatch:
+
+jobs:
+ deploy:
+ runs-on: codeberg-tiny
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ submodules: recursive
+ fetch-depth: 0
+
+ - name: Setup Hugo
+ uses: https://github.com/peaceiris/actions-hugo@v3
+ with:
+ hugo-version: "0.164.0"
+ extended: true
+
+ - name: Build
+ run: hugo --gc --minify --baseURL https://forever2k38.net/
+
+ - name: Deploy to Codeberg Pages
+ uses: https://codeberg.org/git-pages/action@v2
+ with:
+ site: https://forever2k38.net/
+ server: codeberg.page
+ token: ${{ forgejo.token }}
+ source: public/