All checks were successful
/ publish (push) Successful in 1m39s
Netlify is smart enough to avoid uploading new files
35 lines
923 B
YAML
35 lines
923 B
YAML
on:
|
|
push:
|
|
schedule:
|
|
- cron: '30 15 * * *'
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: docker
|
|
env:
|
|
NETLIFY_SITE_ID: cf248f4b-6e60-4956-b134-73122ae44299
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 21.1
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.24
|
|
- name: Installing Netlify
|
|
run: |
|
|
npm install
|
|
npm install netlify-cli -g
|
|
- name: Building Site
|
|
run: |
|
|
mkdir -p build
|
|
cp -r site/* build/.
|
|
- name: Building Header Image
|
|
run: |
|
|
go run ./cmd/fetch-header-image -o build/imgs/header.jpg \
|
|
-out-data build/data/current-pending-images.json
|
|
- name: Deploying Site
|
|
run: |
|
|
netlify deploy --dir build --prod |