Skip to content

Commit d2b2193

Browse files
committed
Update deploy.yml
1 parent d767413 commit d2b2193

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.github/workflows/deploy.yml

+12-16
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,30 @@ permissions:
99
contents: read
1010
pages: write
1111
id-token: write
12-
actions: write
1312

1413
jobs:
15-
build:
14+
deploy:
1615
runs-on: ubuntu-latest
1716
environment:
1817
name: github-pages
19-
url: ${{ steps.deployment.outputs.page_url }}
20-
18+
# url: ${{ steps.deployment.outputs.page_url }}
19+
2120
steps:
22-
- name: Checkout repository
23-
uses: actions/checkout@v4
24-
21+
- uses: actions/checkout@v4
22+
2523
- name: Setup Pages
2624
uses: actions/configure-pages@v4
2725

28-
- name: Copy source files
26+
- name: Prepare deployment
2927
run: |
28+
rm -rf ./_site
3029
mkdir -p ./_site
3130
cp -r src/* ./_site/
32-
31+
3332
- name: Upload artifact
3433
uses: actions/upload-pages-artifact@v3
3534
with:
36-
path: ./_site
37-
38-
- name: Deploy to GitHub Pages
39-
id: deployment
40-
uses: actions/deploy-pages@v4
41-
with:
42-
token: ${{ secrets.GITHUB_TOKEN }}
35+
path: '_site'
36+
37+
- name: Deploy
38+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)