Skip to content

Commit c10dae0

Browse files
committed
ci: add GitHub Action to auto-generate public directory
1 parent 5ea5774 commit c10dae0

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Generate Public Directory
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
paths-ignore:
8+
- 'public/**'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Bun
21+
uses: oven-sh/setup-bun@v2
22+
with:
23+
bun-version: latest
24+
25+
- name: Setup Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.12'
29+
30+
- name: Install dependencies
31+
run: bun install
32+
33+
- name: Run generation script
34+
run: ./update_index.sh
35+
36+
- name: Commit public directory changes
37+
uses: stefanzweifel/git-auto-commit-action@v5
38+
with:
39+
commit_message: 'build: auto-generate public directory'
40+
file_pattern: 'public/'

0 commit comments

Comments
 (0)