File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -61,24 +61,12 @@ jobs:
6161 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
6262
6363 # we run docs:build twice because of the way the sidebar in vuepress plugin is generated
64- - name : Deploy preview website
65- if : ${{ github.ref_name != 'master' }}
64+ - name : Deploy website
6665 run : |
6766 pnpm build:typedocs
6867 pnpm docs:build
6968 pnpm docs:build
70- pnpm exec wrangler pages deploy docs/.vuepress/dist --environment preview --project-name caporal-website
71- env :
72- CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
73- CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
74-
75- - name : Deploy production website
76- if : ${{ github.ref_name == 'master' }}
77- run : |
78- pnpm build:typedocs
79- pnpm docs:build
80- pnpm docs:build
81- pnpm exec wrangler pages deploy docs/.vuepress/dist --environment production --project-name caporal-website
69+ pnpm exec wrangler pages deploy docs/.vuepress/dist --branch ${{ github.ref_name }} --project-name caporal-website
8270 env :
8371 CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
8472 CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
You can’t perform that action at this time.
0 commit comments