Skip to content

Commit 7fbef4b

Browse files
committed
Merge branch 'production' into kathayl-patch-5
2 parents a421394 + d9cb63f commit 7fbef4b

File tree

133 files changed

+3543
-4006
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+3543
-4006
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545

4646
# Changelogs
4747

48-
/src/content/changelogs-next/ @elithrar @irvinebroque @jonesphillip @rita3ko @zaidf
48+
/src/content/changelogs-next/ @cloudflare/pm-changelogs
49+
/src/assets/images/changelog-next/ @cloudflare/pm-changelogs
4950

5051
# Cloudflare One
5152

.github/actions/show-changed-files/action.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/actions/show-changed-files/index.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/actions/show-changed-files/index.ts

Lines changed: 0 additions & 148 deletions
This file was deleted.

.github/actions/show-changed-files/package.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/actions/show-changed-files/readme.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/publish-preview.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
permissions:
1414
contents: read
15+
pull-requests: write
1516
name: Publish Preview
1617
steps:
1718
- uses: actions/checkout@v4
@@ -31,15 +32,25 @@ jobs:
3132
name: Build
3233
env:
3334
NODE_OPTIONS: --max-old-space-size=4096
34-
- run: npx wrangler pages deploy --project-name cloudflare-docs dist
35-
name: Deploy to Cloudflare Pages
36-
env:
37-
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
38-
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
39-
- run: npx wrangler versions upload -c ./wrangler-workers.toml
35+
- run: npx wrangler versions upload
4036
name: Deploy to Cloudflare Workers
4137
env:
4238
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
39+
WRANGLER_OUTPUT_FILE_PATH: wrangler-logs.json
40+
- name: Post preview URL on PR
41+
env:
42+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
run: |
44+
PR=$(gh pr list --head ${{ github.ref_name }} --limit 1 --json number --jq '.[].number')
45+
46+
if [ -n "$PR" ]; then
47+
URL=$(cat wrangler-logs.json | jq -r 'select(.type=="version-upload") | .preview_url')
48+
49+
if [ -n "$URL" ]; then
50+
BODY="**Preview URL:** $URL"
51+
gh pr comment "$PR" --edit-last --body "$BODY" || gh pr comment "$PR" --body "$BODY"
52+
fi
53+
fi
4354
- uses: actions/cache/save@v4
4455
if: always()
4556
with:

.github/workflows/publish-production.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@ jobs:
2828
name: Build
2929
env:
3030
NODE_OPTIONS: --max-old-space-size=4096
31-
- run: npx wrangler pages deploy --project-name cloudflare-docs dist
32-
name: Deploy to Cloudflare Pages
33-
env:
34-
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
35-
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
36-
- run: npx wrangler deploy -c ./wrangler-workers.toml
31+
- run: npx wrangler deploy
3732
name: Deploy to Cloudflare Workers
3833
env:
3934
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

.github/workflows/show-changed-files.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ on:
1313
jobs:
1414
changed-files-links:
1515
name: Show Changed Files
16-
if: github.event.issue.pull_request && github.event.issue.state == 'open' && github.event.comment.user.id == 73139402 && contains(github.event.comment.body, 'Deploy successful')
16+
if: github.event.issue.pull_request && github.event.issue.state == 'open' && github.event.comment.user.id == 41898282 && contains(github.event.comment.body, '**Preview URL:**')
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
- uses: ./.github/actions/show-changed-files
20+
- uses: actions/setup-node@v4
2121
with:
22+
node-version: 22
23+
cache: "npm"
24+
- run: npm ci
25+
- run: npx tsx bin/show-changed-files/index.ts
26+
env:
2227
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
continue-on-error: true

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ dist
55
public/_redirects
66
public/analytics/static/downloads/main.css
77
src/content/workers-ai-models/*.json
8-
tests/fixtures/openapi.json

0 commit comments

Comments
 (0)