Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thingsym/hugo-theme-techdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/gh-pages.yml')
-rw-r--r--.github/workflows/gh-pages.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
new file mode 100644
index 0000000..d1a9544
--- /dev/null
+++ b/.github/workflows/gh-pages.yml
@@ -0,0 +1,33 @@
+name: Publish demo site to Github Pages
+
+on:
+ push:
+ tags:
+ - 'v*.*.*'
+
+jobs:
+ publish:
+ runs-on: ubuntu-18.04
+ timeout-minutes: 30
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: '0.88.1'
+ extended: true
+
+ - name: Build demo website to public directory
+ run: |
+ cd ./exampleSite
+ hugo --config ../.github/demo_config.toml --themesDir ../.. --minify
+
+ - name: Deploy to GitHub Pages
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ personal_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_branch: gh-pages
+ publish_dir: ./exampleSite/public
+ commit_message: 'deploy to GitHub Pages via GitHub Actions'