Skip to content

Commit 11abc79

Browse files
authored
Update deploy.yml
1 parent 9864e52 commit 11abc79

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/deploy.yml

+18-5
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,21 @@ jobs:
5858
echo "Generating dynamic index.html"
5959
node .scripts/index-page-builder.js
6060
61-
- name: Deploy
62-
uses: peaceiris/actions-gh-pages@v4
63-
with:
64-
personal_token: ${{ secrets.GH_ACTIONS_TOKEN }}
65-
publish_dir: ./build
61+
deploy-coverage:
62+
if: github.ref == 'refs/heads/main'
63+
runs-on: ubuntu-latest
64+
needs: build
65+
66+
permissions:
67+
pages: write
68+
id-token: write
69+
70+
environment:
71+
# environment created automatically by GitHub
72+
name: github-pages
73+
url: ${{ steps.deployment.outputs.page_url }}
74+
75+
steps:
76+
- name: Deploy to GitHub Pages
77+
id: deployment
78+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)