allisthewave-hugo-web/.gitea/workflows/hugo2netlify.yaml
Alan Youngblood c721ebac1f
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Deploy to Netlify / Deploy Hugo site to Netlify (push) Failing after 22s
gitea action hugo2netlify setup-go fixed
2024-04-12 12:02:40 -04:00

35 lines
927 B
YAML

name: "Deploy to Netlify"
on:
push:
branches:
- main
jobs:
deploy:
name: "Deploy Hugo site to Netlify"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
name: Checkout
- name: Build
run: |
go version
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