From 6d3ee31199b536a4e003b34a356ca20f6f75496a Mon Sep 17 00:00:00 2001 From: RJ Garcia Date: Fri, 25 Dec 2020 00:00:37 -0500 Subject: [PATCH] Setting up workflow for building docs Signed-off-by: RJ Garcia --- .github/workflows/docs.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..b58513b2 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,26 @@ +name: docs + +on: + push: + branches: + - v3 + +jobs: + deploy: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.79.1' + + - name: Build + run: hugo --minify -s doc + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./doc/public \ No newline at end of file