automate webmention and syndication links

This commit is contained in:
sloane 2025-01-29 11:15:45 -05:00
parent 70399cd5c5
commit 55ddcb72cd
Signed by: sloanelybutsurely
SSH key fingerprint: SHA256:8SBnwhl+RY3oEyQxy1a9wByPzxWM0x+/Ejc+sIlY5qQ

43
.github/workflows/publish.yaml vendored Normal file
View file

@ -0,0 +1,43 @@
name: Build and publish
on:
push:
branches:
- main
paths-ignore:
- '_data/webmention_io_*'
jobs:
build-and-deploy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth:0
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Configure Git
run: |
git config user.name "GitHub Actions Bot"
git config user.email "actions@github.com"
- run: bundle exec jekyll build
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
- run: |
git add _data/webmention_io_*
git diff --staged --quiet || git commit -m "Publish"
git push origin main
- run: bundle exec jekyll webmention
- run: bundle exec jekyll build
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
- run: |
git add _data/webmention_io_*
git diff --staged --quiet || git commit --amend
git push origin main --force-with-lease