From 7cf5f51f5636f3953844d27a54adec0eda496113 Mon Sep 17 00:00:00 2001 From: Alan Youngblood Date: Fri, 12 Apr 2024 11:39:14 -0400 Subject: [PATCH] gitea action hugo2netlify added --- .gitea/workflows/hugo2netlify.yaml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/hugo2netlify.yaml diff --git a/.gitea/workflows/hugo2netlify.yaml b/.gitea/workflows/hugo2netlify.yaml new file mode 100644 index 0000000..eb526c4 --- /dev/null +++ b/.gitea/workflows/hugo2netlify.yaml @@ -0,0 +1,32 @@ +name: "Deploy to Netlify" + +on: + push: + branches: + - main + +jobs: + deploy: + name: "Deploy Hugo site to Netlify" + steps: + - uses: actions/checkout@v3 + name: Checkout + - name: Build + run: | + hugo version + hugo + - uses: https://github.com/nwtgck/actions-netlify@v2.0 + name: Deploy + with: + publish-dir: "./public" + production-deploy: true + #github-token: ${{ secrets.GITHUB_TOKEN }} + deploy-message: "Deployed from Gitea Action" + enable-commit-comment: false + enable-pull-request-comment: false + overwrites-pull-request-comment: true + enable-github-deployment: false + env: + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + timeout-minutes: 1