Added action netlifydeploy
Some checks failed
Deploy to Netlify / Deploy to Netlify (push) Failing after 1m31s
Some checks failed
Deploy to Netlify / Deploy to Netlify (push) Failing after 1m31s
This commit is contained in:
parent
2e575b00ce
commit
5c3ed73700
31
.gitea/workflows/netlifydeploy.yaml
Normal file
31
.gitea/workflows/netlifydeploy.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
name: "Deploy to Netlify"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: "Deploy to Netlify"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
name: Checkout
|
||||
- name: Build
|
||||
run: |
|
||||
hugo
|
||||
- uses: https://github.com/nwtgck/actions-netlify@v2.0
|
||||
name: Deploy
|
||||
with:
|
||||
publish-dir: "./dist"
|
||||
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
|
Loading…
Reference in New Issue
Block a user