We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ea5774 commit c10dae0Copy full SHA for c10dae0
1 file changed
.github/workflows/generate-public.yml
@@ -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
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
39
+ commit_message: 'build: auto-generate public directory'
40
+ file_pattern: 'public/'
0 commit comments