-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,27 +11,26 @@ on: | |
# 这个选项可以使你手动在 Action tab 页面触发工作流 | ||
workflow_dispatch: | ||
|
||
# 权限 | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# 环境变量 | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
jobs: | ||
# 构建 | ||
build: | ||
# 运行环境 | ||
runs-on: ubuntu-latest | ||
|
||
# 权限 | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# 环境变量 | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
# 步骤 | ||
steps: | ||
- name: Checkout | ||
description: 'Checkout the repository, so we can use it with actions' | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Node.js | ||
|
@@ -53,16 +52,6 @@ jobs: | |
with: | ||
path: './dist' | ||
|
||
# 部署 | ||
deploy: | ||
# 依赖 | ||
needs: build | ||
|
||
# 运行环境 | ||
runs-on: ubuntu-latest | ||
|
||
# 步骤 | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |