File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 1- name : Deploy to GitHub Pages
1+ name : Deploy
22
33on :
44 push :
55 branches : [main]
66 pull_request :
77 workflow_dispatch :
88
9- # Allow this job to clone the repo and create a page deployment
109permissions :
1110 contents : read
12- pages : write
1311 id-token : write
1412 deployments : write
1513 pull-requests : write
3331 run : pnpm install
3432 - name : Build site
3533 run : pnpm run build
36- - name : Upload GitHub Pages artifact
37- uses : actions/upload-pages-artifact@v4
38- with :
39- path : dist/
4034 - name : Upload dist artifact
4135 uses : actions/upload-artifact@v7
4236 with :
9993 PR_NUMBER : ${{ github.event.pull_request.number }}
10094 run : .github/scripts/cloudflare-deploy.sh comment
10195
102- deploy :
103- needs : build
104- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
105- runs-on : ubuntu-latest
106- environment :
107- name : github-pages
108- url : ${{ steps.deployment.outputs.page_url }}
109- steps :
110- - name : Deploy to GitHub Pages
111- id : deployment
112- uses : actions/deploy-pages@v5
You can’t perform that action at this time.
0 commit comments