diff options
author | syui <syui@syui.cf> | 2019-12-06 21:23:34 +0300 |
---|---|---|
committer | syui <syui@syui.cf> | 2019-12-06 21:35:06 +0300 |
commit | 911bc360d2598b64615a583514ecc1b8e81236fa (patch) | |
tree | aa1749374c0950ab4897c43386f803ce05813007 | |
parent | fd6dae1d5b15a6dfb81a5b1223527f1e0cc725ba (diff) |
add md
add github actions
fix
fix readme
-rw-r--r-- | .github/workflows/gh-pages.yml | 38 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | content/post/sample.md | 18 |
4 files changed, 62 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 @@ -1,3 +1,6 @@ tmp .DS_Store public + +gh-pages +gh-pages.pub @@ -3,6 +3,8 @@ Air is a single-column theme for [Hugo](http://gohugo.io/). Ported from [Casper theme for Ghost ](https://github.com/TryGhost/Casper), [vjeantet/hugo-theme-casper](https://github.com/vjeantet/hugo-theme-casper) +- github actions + - blog demo : http://syui.github.io/hugo-theme-air - blog source : https://github.com/syui/hugo-theme-air @@ -157,6 +159,7 @@ $ git push -u origin gh-pages $ curl user.github.io/repository ``` + # Contact me :beetle: open an issue in github diff --git a/content/post/sample.md b/content/post/sample.md new file mode 100644 index 0000000..dae7221 --- /dev/null +++ b/content/post/sample.md @@ -0,0 +1,18 @@ ++++ +author = "syui" +comments = false +date = "2017-01-01" +draft = false +image = "" +menu = "" +share = false +slug = "test" +title= "sample" ++++ + +[Hugo](https://gohugo.io/documentation/) is the world's fastest static website engine. It's written in Go (aka Golang) and developed by bep, `spf13` and friends. + +> Below you will find some of the most common and helpful pages from our documentation. + +https://gohugo.io/documentation/ + |