We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7c789d commit 9184dd8Copy full SHA for 9184dd8
.github/workflows/azure-deploy.yml renamed to .github/workflows/githubio-deploy.yml
@@ -30,15 +30,9 @@ jobs:
30
- name: Build
31
run: yarn build:azure
32
33
- - name: Deploy
34
- id: deploy
35
- uses: Azure/static-web-apps-deploy@v1
+ - name: Deploy to GitHub Pages
+ uses: peaceiris/actions-gh-pages@v3 # 使用 GitHub Pages 专用 Action
36
with:
37
- azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLUE_DESERT_0E46AFE00 }}
38
- repo_token: ${{ secrets.GITHUB_TOKEN }}
39
- action: 'upload'
40
- production_branch: 'main'
41
- app_location: 'dist'
42
- api_location: ''
43
- skip_app_build: true
44
- skip_api_build: true
+ github_token: ${{ secrets.GITHUB_TOKEN }} # 使用内置 Token 无需额外配置
+ publish_dir: ./dist # 静态文件目录(与构建输出目录一致)
+ keep_files: false # 是否保留历史文件(按需调整)
0 commit comments