Skip to content

Commit 87fb092

Browse files
committed
update
1 parent 0385c81 commit 87fb092

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

.github/workflows/gh-pages.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Page Build
22

33
on: [push]
44

5+
# Allow one concurrent deployment
56
concurrency:
67
group: "pages"
78
cancel-in-progress: true
@@ -41,26 +42,10 @@ jobs:
4142
-e twitter.com \
4243
"
4344

44-
- name: Upload artifacts
45-
uses: actions/upload-pages-artifact@v3
45+
- name: Deploy
46+
uses: peaceiris/actions-gh-pages@v4
4647
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4748
with:
48-
path: ./public
49-
50-
deploy:
51-
needs: build
52-
53-
permissions:
54-
id-token: write
55-
pages: write
56-
57-
environment:
58-
name: github-pages
59-
url: ${{ steps.deployment.outputs.page_url }}
60-
61-
runs-on: ubuntu-latest
62-
steps:
63-
- name: Deploy artifacts
64-
uses: actions/deploy-pages@v4
65-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
66-
id: deployment
49+
deploy_key: ${{ secrets.GITHUB_TOKEN }}
50+
publish_dir: ./public
51+
publish_branch: gh-pages # deploying branch

0 commit comments

Comments
 (0)