-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (61 loc) · 1.87 KB
/
jekyll.yml
File metadata and controls
77 lines (61 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Deploy Jekyll site to Pages
on:
push:
branches: ["main"]
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
all-in-one:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3.6"
bundler-cache: true
- id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Debug outgoing before webmention
run: |
echo "=== OUTGOING BEFORE ==="
ls -R _data/webmentions || true
tail -n 200 _data/webmentions/outgoing.yml || echo "No outgoing file"
- uses: actions/upload-pages-artifact@v3
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Send webmentions
run: bundle exec jekyll webmention
env:
JEKYLL_ENV: production
- name: Debug after webmention
run: |
echo "=== OUTGOING AFTER ==="
tail -n 200 _data/webmentions/outgoing.yml || echo "No outgoing file"
echo "=== RECEIVED AFTER ==="
tail -n 200 _data/webmentions/received.yml || echo "No received file"
- name: Commit webmentions
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add -A _data/webmentions
if git diff --cached --quiet; then
echo "No changes to commit"
exit 0
fi
git commit -m "Update webmentions"
git push --force-with-lease origin main