Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
CKlimeths committed Nov 12, 2024
2 parents 4522a53 + db5b7f9 commit 2e13dee
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 2e13dee

Please sign in to comment.