diff options
author | Rahmat Subekti <rahmatsubekti@live.com> | 2020-06-30 15:51:03 +0300 |
---|---|---|
committer | Rahmat Subekti <rahmatsubekti@live.com> | 2020-06-30 15:51:03 +0300 |
commit | d7f41b1f047bfb6003642006182c6e81c94a5517 (patch) | |
tree | 46a651476598c3ca18298874e0f88fbf390f907e | |
parent | a7fb898ff3f927abe3898f72cde60c95b6aff58f (diff) |
test deploy
-rw-r--r-- | .github/workflows/main.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..82e57db --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +# This is a basic workflow to help you get started with Actions +name: Github Pages +on: + push: + branches: + - testing + +jobs: + build-deploy: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + with: + ref: testing + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.71.1' + extended: true + - name: Build + run: hugo --minify + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + env: + ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: ./public
\ No newline at end of file |