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
13 changes: 8 additions & 5 deletions .github/workflows/after-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
name: deploy-docs-preview

steps:
- run: echo "$GITHUB_EVENT_JSON"
env:
GITHUB_EVENT_JSON: ${{ toJSON(github.event) }}

- uses: actions/checkout@v4

- uses: actions/setup-node@v4
Expand All @@ -57,7 +61,8 @@ jobs:
enable-cache: true
cache-suffix: deploy-docs-preview

- uses: dawidd6/action-download-artifact@v6
- id: download-artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: ci.yml
name: site
Expand All @@ -69,6 +74,7 @@ jobs:

- uses: cloudflare/wrangler-action@v3
id: deploy
if: steps.download-artifact.outputs.found_artifact == 'true'
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
environment: previews
Expand All @@ -78,12 +84,9 @@ jobs:
--var GIT_COMMIT_SHA:${{ github.event.workflow_run.head_sha }}
--var GIT_BRANCH:${{ github.event.workflow_run.head_branch }}

- run: echo "$GITHUB_EVENT_JSON"
env:
GITHUB_EVENT_JSON: ${{ toJSON(github.event) }}

- name: Set preview URL
run: uv run --no-project --with httpx .github/set_docs_pr_preview_url.py
if: steps.deploy.outcome == 'success'
env:
DEPLOY_OUTPUT: ${{ steps.deploy.outputs.command-output }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down