Skip to content

Commit

Permalink
page8
Browse files Browse the repository at this point in the history
  • Loading branch information
Qingqing committed Aug 29, 2024
1 parent 0867897 commit 6df9c66
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: build and deploy
name: Deploy to GitHub Pages

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
branches: [ main ] # 触发条件:当 main 分支上有推送时

jobs:
deploy:
Expand All @@ -46,11 +26,9 @@ jobs:
env:
CI: true

# Publish to GitHub Pages
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: .


branch: gh-pages # 分支名
folder: build # 要部署的文件夹
clean: true # 是否清理旧的文件

0 comments on commit 6df9c66

Please sign in to comment.