Separate updating webring and building site steps

This enables updating post without interrupting the webring which is
supposed to stay for a week.
This commit is contained in:
Gabriel Arazas 2023-02-27 18:45:14 +08:00
parent d0278e87a8
commit aedcac2777
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 20 additions and 4 deletions

14
.github/workflows/build-webring.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: "Update webring"
on:
schedule:
# Every Sunday.
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- run: nix develop -c make build-openring

View File

@ -3,9 +3,11 @@ on:
push:
branches:
- master
schedule:
# Every Sunday.
- cron: '0 0 * * 0'
workflow_run:
workflows:
- "Update webring"
types:
- "completed"
jobs:
build:
runs-on: ubuntu-latest

View File

@ -1,5 +1,5 @@
.PHONY: build
build: build-openring
build:
hugo --destination public
.PHONY: build-openring