Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,30 @@ jobs:
- name: Build documentation
if: github.event_name != 'workflow_dispatch' || !inputs.selected_version
run: cd docs && just all
- name: Publish
- name: Publish production
if: github.event_name == 'release'
uses: cloudflare/wrangler-action@v3
id: cf_publish
id: cf_publish_production
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy docs/target/site/ --project-name=lz4-java-yawk-at --branch=main
- name: Publish preview
if: github.event_name != 'release'
uses: cloudflare/wrangler-action@v3
id: cf_publish_preview
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy docs/target/site/ --project-name=lz4-java-yawk-at
- name: Check PR
if: github.event_name != 'release'
uses: 8BitJonny/gh-get-current-pr@3.0.0
id: pr
- name: Comment on PR
if: steps.pr.outputs.pr_found
uses: thollander/actions-comment-pull-request@v3
with:
message: ":rocket: Preview deployed to ${{steps.cf_publish.outputs.deployment-url}}"
message: ":rocket: Preview deployed to ${{steps.cf_publish_preview.outputs.deployment-url}}"
comment-tag: deployment
pr-number: "${{steps.pr.outputs.number}}"