Skip to content

Commit 497a14b

Browse files
committed
fix deploy
1 parent 4b9f033 commit 497a14b

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/pages.yml

+6-14
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,12 @@ jobs:
4949
path: ./deployment
5050

5151
deploy:
52+
environment:
53+
name: github-pages
54+
url: ${{ steps.deployment.outputs.page_url }}
5255
runs-on: ubuntu-latest
5356
needs: build
5457
steps:
55-
- name: Checkout Repository
56-
uses: actions/checkout@v4
57-
- name: Download Build Artifact
58-
uses: actions/download-pages-artifact@v3
59-
- name: Deploy to `page` Branch
60-
run: |
61-
git config user.name "GitHub Actions"
62-
git config user.email "[email protected]"
63-
git checkout --orphan page
64-
git rm -rf .
65-
cp -r ./deployment/* .
66-
git add .
67-
git commit -m "Deploy to page branch"
68-
git push -f origin page
58+
- name: Deploy to GitHub Pages
59+
id: deployment
60+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)