From 51a771fcec4a557c444486dbdd387b10a084355a Mon Sep 17 00:00:00 2001 From: Thomas Labarussias Date: Thu, 1 Feb 2024 17:33:49 +0100 Subject: [PATCH] worflow for docs Signed-off-by: Thomas Labarussias --- .github/workflows/docs.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..37650baa --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,25 @@ +name: Push to GitHub Pages on push to main +on: + push: + branches: + - main + - hugo-docs + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + deploy: + steps: + - name: Deploy the site + working-directory: docs-website + uses: benmatselby/hugo-deploy-gh-pages@main + env: + HUGO_VERSION: 0.118.2 + TARGET_REPO: issif/falco-talon + TARGET_BRANCH: ${{ var.GITHUB_BASE_REF }} + TOKEN: ${{ secrets.TOKEN }} + HUGO_ARGS: '-gc --minify' + CNAME: benmatselby.github.io