File tree Expand file tree Collapse file tree 1 file changed +23
-10
lines changed Expand file tree Collapse file tree 1 file changed +23
-10
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main # 触发分支
7
7
8
+ # 设置权限
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ # 允许一个并发部署
15
+ concurrency :
16
+ group : " pages"
17
+ cancel-in-progress : false
18
+
8
19
jobs :
9
20
build-and-deploy :
10
21
runs-on : ubuntu-latest
22
+ environment :
23
+ name : github-pages
24
+ url : ${{ steps.deployment.outputs.page_url }}
11
25
steps :
12
26
- name : Checkout
13
27
uses : actions/checkout@v3
@@ -23,15 +37,14 @@ jobs:
23
37
- name : Build
24
38
run : npm run build
25
39
26
- # - name: Configure Git
27
- # run: |
28
- # git remote set-url origin https://github.com/lim-sec/ai-coding-prompt-builder.git
29
- # git config --global user.name "github-actions[bot]"
30
- # git config --global user.email "[email protected] "
40
+ - name : Setup Pages
41
+ uses : actions/configure-pages@v4
31
42
32
- - name : Deploy to GitHub Pages
33
- uses : peaceiris/ actions-gh- pages@v3
43
+ - name : Upload artifact
44
+ uses : actions/upload- pages-artifact @v3
34
45
with :
35
- github_token : ${{ secrets.FUCK_ACTION_GITHUB_TOKEN }}
36
- publish_dir : ./dist
37
- force_orphan : true
46
+ path : ' ./dist'
47
+
48
+ - name : Deploy to GitHub Pages
49
+ id : deployment
50
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments