From 55da1d4ea6adbf830c8216a7dfeb79eef63602db Mon Sep 17 00:00:00 2001 From: DidierRLopes Date: Mon, 23 Aug 2021 01:03:00 +0100 Subject: [PATCH] Create gh-pages.yml --- .github/workflows/gh-pages.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 00000000000..b2679c9e50a --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,25 @@ +name: github pages +on: push +jobs: + deploy: + runs-on: ubuntu-18.04 + steps: + - name: Git checkout + uses: actions/checkout@v2 + + - name: Setup hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: "0.85.0" + + - name: Build + # remove --minify tag if you do not need it + # docs: https://gohugo.io/hugo-pipes/minification/ + run: hugo + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/master' + with: + personal_token: ${{ secrets.DEPLOY_TOKEN }} + publish_dir: ./public