mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 04:58:26 +00:00
a1f65a29a9
Mainly because of `baseURL` issues, I cannot deploy this site properly with its assets. To fix it, I just have to properly set them and the easiest way to do so is to build it with Netlify. With this change, the webring post update will be in a separate workflow and done in a schedule.
28 lines
862 B
YAML
28 lines
862 B
YAML
name: "Update webring post list"
|
|
on:
|
|
schedule:
|
|
# Every Sunday.
|
|
- cron: '0 0 * * 0'
|
|
env:
|
|
# GitHub bot
|
|
GIT_AUTHOR_NAME: "github-actions[bot]"
|
|
GIT_AUTHOR_EMAIL: "github-actions[bot]@users.noreply.github.com"
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v18
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: |
|
|
keep-going = true
|
|
- run: nix develop -c make build-openring
|
|
- name: Update webring post list
|
|
run: |
|
|
git add .
|
|
git commit -m "Update webring post list as of $(date '+%F')"
|
|
git remote remove origin
|
|
git remote add origin https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
|
|
git push --set-upstream origin master
|