Skip to content

Commit e339107

Browse files
committed
Trey deploy test version3 4/12
1 parent b6bcf39 commit e339107

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,21 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches:
6-
- trey-react-update # 👈 如果你开发的是 trey-work 分支,记得改成这个
6+
- trey-react-update
77

88
permissions:
99
contents: read
1010
pages: write
1111
id-token: write
1212

13-
concurrency:
14-
group: "pages"
15-
cancel-in-progress: true
16-
1713
jobs:
18-
build:
14+
deploy:
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.deployment.outputs.page_url }}
1918
runs-on: ubuntu-latest
2019
steps:
21-
- name: Checkout repository
20+
- name: Checkout code
2221
uses: actions/checkout@v4
2322

2423
- name: Setup Node.js
@@ -29,21 +28,17 @@ jobs:
2928
- name: Install dependencies
3029
run: npm ci
3130

32-
- name: Build project
31+
- name: Build
3332
run: npm run build
3433

35-
- name: Upload artifact
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v3
36+
37+
- name: Upload build output
3638
uses: actions/upload-pages-artifact@v2
3739
with:
3840
path: dist
3941

40-
deploy:
41-
needs: build
42-
runs-on: ubuntu-latest
43-
environment:
44-
name: github-pages
45-
url: ${{ steps.deployment.outputs.page_url }}
46-
steps:
4742
- name: Deploy to GitHub Pages
4843
id: deployment
4944
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)