This commit is contained in:
parent
93e0de7a04
commit
30a7fbc4f4
25
.forgejo/workflows/publish.yaml
Normal file
25
.forgejo/workflows/publish.yaml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: docker
|
||||||
|
env:
|
||||||
|
NETLIFY_SITE_ID: 58f8eab8-5fc5-478f-be50-452bc3fb1c49
|
||||||
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 21.1
|
||||||
|
- name: Install Hugo
|
||||||
|
run: |
|
||||||
|
curl -LO https://github.com/gohugoio/hugo/releases/download/v0.135.0/hugo_0.135.0_linux-amd64.tar.gz
|
||||||
|
tar -xvzf hugo_0.135.0_linux-amd64.tar.gz
|
||||||
|
- name: Install Netlify CLI
|
||||||
|
run: |
|
||||||
|
npm install netlify-cli@15.0.1 -g
|
||||||
|
- name: Build and deploy
|
||||||
|
run: |
|
||||||
|
./hugo
|
||||||
|
netlify deploy --dir public --prod
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,4 @@
|
||||||
public
|
public
|
||||||
|
|
||||||
|
# Local Netlify folder
|
||||||
|
.netlify
|
||||||
|
|
Loading…
Reference in a new issue