summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Andronaco <andronacomarco@gmail.com>2023-07-14 14:30:46 +0200
committerMarco Andronaco <andronacomarco@gmail.com>2023-07-14 14:30:46 +0200
commitdaf64814451826bb7c8451a3fc9e0378c1b772ca (patch)
tree11a686ca508ef7e8effc42292373190cd8e41307
parentf99116c6fa384ebfd915105517ef0ce207207ab3 (diff)
downloadzola-website-daf64814451826bb7c8451a3fc9e0378c1b772ca.tar.gz
add github workflow
-rw-r--r--.github/workflows/gh.pages.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/gh.pages.yml b/.github/workflows/gh.pages.yml
new file mode 100644
index 0000000..bfd3cb0
--- /dev/null
+++ b/.github/workflows/gh.pages.yml
@@ -0,0 +1,27 @@
+name: GitHub Pages
+
+on:
+  push:
+    branches:
+      - master  # Set a branch name to trigger deployment
+  pull_request:
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    permissions:
+      contents: write
+    concurrency:
+      group: ${{ github.workflow }}-${{ github.ref }}
+    steps:
+      - name: checkout
+        uses: actions/checkout@v3
+        with:
+          submodules: true  # Fetch Hugo themes (true OR recursive)
+          fetch-depth: 0    # Fetch all history for .GitInfo and .Lastmod
+
+      - name: build_and_deploy
+        uses: shalzz/zola-deploy-action@v0.17.2
+        env:
+          PAGES_BRANCH: gh-pages
+          TOKEN: ${{ secrets.GITHUB_TOKEN }}