We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2e2672 commit adfbb43Copy full SHA for adfbb43
1 file changed
.github/workflows/build-gallery.yml
@@ -0,0 +1,24 @@
1
+name: Build Gallery
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
7
+jobs:
8
+ build-gallery:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ contents: write
12
+ steps:
13
+ - uses: actions/checkout@v4
14
15
+ - name: Generate gallery index
16
+ run: python scripts/build_gallery.py
17
18
+ - name: Commit gallery
19
+ run: |
20
+ git config user.name "github-actions[bot]"
21
+ git config user.email "github-actions[bot]@users.noreply.github.com"
22
+ git add index.html
23
+ git diff --staged --quiet || git commit -m "chore: rebuild gallery index"
24
+ git push
0 commit comments