Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions .github/workflows/scheduled_build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
name: Scheduled build
name: GitHub Pages

on:
push:
branches: [main]
pull_request:
schedule:
- cron: '0 3 * * *'

jobs:
build:
deploy:
runs-on: ubuntu-latest
steps:
- name: Trigger build hook on Netlify
run: curl -X POST -s "https://api.netlify.com/build_hooks/${TOKEN}"
env:
TOKEN: ${{ secrets.NETLIFY_CRON_BUILD }}
- uses: actions/checkout@v4

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.71.1'

- name: Build
run: hugo --minify --buildFuture

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
10 changes: 0 additions & 10 deletions netlify.toml

This file was deleted.