From ff7871acf8c6fc66d57d78d21689781d21850e95 Mon Sep 17 00:00:00 2001 From: "J.P. Yuki Savard" Date: Sun, 29 Nov 2020 09:42:29 -0500 Subject: [PATCH] Create CD workflow --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..98c7e8f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: GitHub Pages + +on: + push: + branches: + - main + + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true + fetch-depth: 0 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + + - name: Build + run: hugo --minify + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public