Skip to content

Commit 12cd2f6

Browse files
authored
Update azure-static-web-apps-delightful-dune-04550af00.yml
定制工作流
1 parent da613c2 commit 12cd2f6

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/azure-static-web-apps-delightful-dune-04550af00.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,24 @@ jobs:
1919
with:
2020
submodules: true
2121
lfs: false
22+
- name: Install bun
23+
run: |
24+
curl -fsSL https://bun.sh/install | bash
25+
export PATH=$HOME/.bun/bin:$PATH
26+
- name: Install dependencies
27+
run: bun install
28+
- name: Build the Quasar app
29+
run: bun quasar build
2230
- name: Build And Deploy
2331
id: builddeploy
2432
uses: Azure/static-web-apps-deploy@v1
2533
with:
2634
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_DELIGHTFUL_DUNE_04550AF00 }}
27-
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
35+
repo_token: ${{ secrets.GITHUB_TOKEN }}
2836
action: "upload"
29-
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
30-
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
31-
app_location: "/" # App source code path
32-
api_location: "" # Api source code path - optional
33-
output_location: "dist" # Built app content directory - optional
34-
###### End of Repository/Build Configurations ######
37+
app_location: "/" # 确保代码位于项目根目录
38+
api_location: "" # API 目录(如果需要,可设置)
39+
output_location: "dist/spa" # Quasar SPA 默认构建输出目录
3540

3641
close_pull_request_job:
3742
if: github.event_name == 'pull_request' && github.event.action == 'closed'

0 commit comments

Comments
 (0)