diff --git a/.github/workflows/deploy_test.yml b/.github/workflows/deploy_test.yml new file mode 100644 index 0000000..8d718c6 --- /dev/null +++ b/.github/workflows/deploy_test.yml @@ -0,0 +1,28 @@ +name: Hugo deployment test + +on: + push: + branches: + - src + +jobs: + build-deploy: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@master + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2.2.2 + with: + hugo-version: '0.59.1' + extended: true + + - name: Build + run: hugo --minify -DEFb=https://msfjarvis.github.io/msfjarvis.website + + - 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