summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorunderground <underground@underground.pm>2025-01-19 19:48:31 +0100
committerunderground <underground@underground.pm>2025-01-19 19:48:31 +0100
commit3a247ba6ca0cd3148ee2e2a4260de99e434585cc (patch)
tree36cb06eb9341f5379298261c316783129294f748 /.github/workflows
downloadmiraikumiko.com-3a247ba6ca0cd3148ee2e2a4260de99e434585cc.tar.gz
miraikumiko.com-3a247ba6ca0cd3148ee2e2a4260de99e434585cc.tar.bz2
Init
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/deploy.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..67073e8
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,30 @@
+name: Deploy Hugo site to GitHub Pages
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+ with:
+ submodules: true
+
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: 'latest'
+
+ - name: Build site
+ run: hugo --minify
+
+ - name: Deploy to GitHub Pages
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./public