File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 88concurrency : ${{ github.workflow }}-${{ github.ref }}
99
1010permissions :
11+ pages : write # to deploy to Pages
1112 id-token : write
1213
1314# env:
1819 release :
1920 name : Release
2021 runs-on : ubuntu-latest
22+ outputs :
23+ published : ${{ steps.changesets.outputs.published }}
2124 steps :
2225 - uses : actions/checkout@v4
2326 with :
5558 # This means that checks won't run on the release PRs. We work around
5659 # this by using our own GH_TOKEN_REPO_ACCESS organization secret.
5760 GITHUB_TOKEN : ${{ secrets.GH_TOKEN_REPO_ACCESS }}
61+
62+ deploy-pages :
63+ needs : release
64+ if : ${{ needs.release.outputs.published == 'true' }}
65+ name : Deploy Docs to GitHub Pages
66+ runs-on : ubuntu-latest
67+
68+ environment :
69+ name : github-pages
70+ url : ${{ steps.deployment.outputs.page_url }}
71+
72+ steps :
73+ - name : Upload static files as artifact
74+ uses : actions/upload-pages-artifact@v3
75+ with :
76+ path : apps/storybook/dist/
77+
78+ - name : Deploy to GitHub Pages
79+ id : deployment
80+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments