Added deploy step
All checks were successful
/ publish (push) Successful in 1m16s

This commit is contained in:
Leon Mika 2025-02-19 22:27:36 +11:00
parent 93e0de7a04
commit 30a7fbc4f4
2 changed files with 28 additions and 0 deletions

View 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
View file

@ -1 +1,4 @@
public
# Local Netlify folder
.netlify