File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed
Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -36,21 +36,20 @@ jobs:
3636 - name : Build documentation
3737 if : github.event_name != 'workflow_dispatch' || !inputs.selected_version
3838 run : cd docs && just all
39- - name : Upload pages artifact
40- id : deployment
41- uses : actions/upload-pages-artifact@v3
39+ - name : Publish
40+ uses : cloudflare/wrangler-action@v3
41+ id : cf_publish
4242 with :
43- path : ' docs/target/site/'
44- deploy :
45- needs : build
46- permissions :
47- pages : write
48- id-token : write
49- environment :
50- name : github-pages
51- url : ${{ steps.deployment.outputs.page_url }}
52- runs-on : ubuntu-latest
53- steps :
54- - name : Deploy to GitHub Pages
55- id : deployment
56- uses : actions/deploy-pages@v4
43+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
44+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
45+ command : pages deploy docs/target/site/ --project-name=lz4-java-yawk-at
46+ - name : Check PR
47+ 48+ id : pr
49+ - name : Comment on PR
50+ if : steps.pr.outputs.pr_found
51+ uses : thollander/actions-comment-pull-request@v3
52+ with :
53+ message : " :rocket: Preview deployed to ${{steps.cf_publish.outputs.deployment-url}}"
54+ comment-tag : deployment
55+ pr-number : " ${{steps.pr.outputs.number}}"
You can’t perform that action at this time.
0 commit comments