File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555 prerelease : ${{ steps.do-publish.outputs.prerelease }}
5656 timeout-minutes : 15
5757
58- permissions :
59- contents : write
60-
6158 steps :
6259 - uses : actions/checkout@v6
6360 with :
@@ -135,12 +132,27 @@ jobs:
135132 if : ${{ steps.do-publish.outputs.tag == 'latest' }}
136133 run : |
137134 yarn docs:html
138- - name : Publish docs
139- uses : peaceiris/ actions-gh- pages@v4
135+ - name : Upload docs artifact
136+ uses : actions/upload- pages-artifact@v3
140137 if : ${{ steps.do-publish.outputs.tag == 'latest' }}
141138 with :
142- github_token : ${{ secrets.GITHUB_TOKEN }}
143- publish_dir : ./docs
139+ path : ./docs
140+
141+ deploy-docs :
142+ name : Deploy docs to GitHub Pages
143+ needs : prepare
144+ if : ${{ needs.prepare.outputs.tag == 'latest' }}
145+ runs-on : ubuntu-latest
146+ permissions :
147+ pages : write
148+ id-token : write
149+ environment :
150+ name : github-pages
151+ url : ${{ steps.deployment.outputs.page_url }}
152+ steps :
153+ - name : Deploy to GitHub Pages
154+ id : deployment
155+ uses : actions/deploy-pages@v4
144156
145157 publish :
146158 name : Publish to NPM
You can’t perform that action at this time.
0 commit comments