Skip to content

Commit 9184dd8

Browse files
authored
Update and rename azure-deploy.yml to githubio-deploy.yml
1 parent a7c789d commit 9184dd8

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/azure-deploy.yml renamed to .github/workflows/githubio-deploy.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,9 @@ jobs:
3030
- name: Build
3131
run: yarn build:azure
3232

33-
- name: Deploy
34-
id: deploy
35-
uses: Azure/static-web-apps-deploy@v1
33+
- name: Deploy to GitHub Pages
34+
uses: peaceiris/actions-gh-pages@v3 # 使用 GitHub Pages 专用 Action
3635
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
36+
github_token: ${{ secrets.GITHUB_TOKEN }} # 使用内置 Token 无需额外配置
37+
publish_dir: ./dist # 静态文件目录(与构建输出目录一致)
38+
keep_files: false # 是否保留历史文件(按需调整)

0 commit comments

Comments
 (0)