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

github.com/syui/hugo-theme-air.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyui <syui@syui.cf>2019-12-06 21:23:34 +0300
committersyui <syui@syui.cf>2019-12-06 21:35:06 +0300
commit911bc360d2598b64615a583514ecc1b8e81236fa (patch)
treeaa1749374c0950ab4897c43386f803ce05813007 /.github
parentfd6dae1d5b15a6dfb81a5b1223527f1e0cc725ba (diff)
add md
add github actions fix fix readme
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/gh-pages.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
new file mode 100644
index 0000000..d58d57e
--- /dev/null
+++ b/.github/workflows/gh-pages.yml
@@ -0,0 +1,38 @@
+name: github pages
+
+on:
+ push:
+ branches:
+ - src
+
+jobs:
+ build-deploy:
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@master
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 12
+ ref: src
+ submodules: true
+ - run: yarn install
+
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2.2.2
+ with:
+ hugo-version:
+ # extended: true
+
+ - name: Build
+ env:
+ TZ: "Asia/Tokyo"
+ run: |
+ hugo --gc --minify --cleanDestinationDir
+ touch ./public/.nojekyll
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v2.5.0
+ env:
+ ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
+ PUBLISH_BRANCH: gh-pages
+ PUBLISH_DIR: ./public