From 6fca9e83d3061112758ca8cb89a2279e22423bd1 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 1 Nov 2019 16:48:33 +0530 Subject: [PATCH] Test GitHub deployment Signed-off-by: Harsh Shandilya --- .github/workflows/deploy_test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deploy_test.yml 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