Skip to content

Commit 177b4b5

Browse files
committed
wip: 不能放到根目录 + Unauthorized resource request
1 parent aa6d754 commit 177b4b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy-laf.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
env:
1010
# 云存储名称,比如 ukw0y1-site 只需要写 site
1111
BUCKET_NAME: site
12+
# 网站资源推送到云存储的目标目录(默认是根目录,会覆盖原有文件)
13+
BUCKET_DIST_PATH: unibest-demo
1214
# 目前本地测试过,随便一个名字就行
1315
LAF_APPID: feige
1416
LAF_PAT: ${{ secrets.LAF_PAT }}
@@ -45,4 +47,4 @@ jobs:
4547
LAF_APPID: ${{ env.LAF_APPID }}
4648
run: |
4749
laf app init ${{ env.LAF_APPID }}
48-
laf storage push -f ${{ env.BUCKET_NAME }} ${{ env.DIST_PATH }}/
50+
laf storage push -f ${{ env.BUCKET_NAME }}/${{ env.BUCKET_DIST_PATH }} ${{ env.DIST_PATH }}/

0 commit comments

Comments
 (0)