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

github.com/xianmin/hugo-theme-jane.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Xianmin <xianmin12@gmail.com>2022-09-07 17:24:07 +0300
committerChen Xianmin <xianmin12@gmail.com>2022-09-07 17:24:07 +0300
commit4eef8996c0469728746173fca5019e5006f7745a (patch)
tree374f2d6edf04b70b23d88569d9f566058e93c619
parentc6ef58996189bcafef0c5377ed18141a2338eed1 (diff)
feat: add github action deploy gh-pages
-rw-r--r--.github/workflows/build.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..f9497ce
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,30 @@
+name: github pages
+
+on:
+ push:
+ branches:
+ - master # Set a branch to deploy
+
+jobs:
+ deploy:
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: false # Fetch Hugo themes (true OR recursive)
+ fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
+
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: 'latest'
+ extended: true
+
+ - name: Build
+ run: hugo
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
+ publish_dir: ./public