Fixed gitea actions script
All checks were successful
Deploy to Netlify / Deploy Hugo site to Netlify (push) Successful in 14s
All checks were successful
Deploy to Netlify / Deploy Hugo site to Netlify (push) Successful in 14s
This commit is contained in:
parent
7b1b09dac6
commit
5fba492289
41
.gitea/workflows/hugo2netlify.yaml
Normal file
41
.gitea/workflows/hugo2netlify.yaml
Normal file
@ -0,0 +1,41 @@
|
||||
name: "Deploy to Netlify"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: "Deploy Hugo site to Netlify"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
name: Checkout
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: "0.124.1"
|
||||
extended: true
|
||||
github-token: ${{ secrets.GH_TOKEN }}
|
||||
- name: Build
|
||||
run: |
|
||||
hugo version
|
||||
hugo --minify
|
||||
- uses: https://github.com/nwtgck/actions-netlify@v2.0
|
||||
name: Deploy
|
||||
with:
|
||||
publish-dir: "./public"
|
||||
production-deploy: true
|
||||
github-token: ${{ secrets.GH_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_NBCO }}
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
timeout-minutes: 1
|
Loading…
Reference in New Issue
Block a user