8000 Split CI build, restore Cloudflare purge for datasheets by Serjlee · Pull Request #2153 · arduino/docs-content · GitHub
[go: up one dir, main page]

Skip to content

Split CI build, restore Cloudflare purge for datasheets #2153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix purge
  • Loading branch information
Serjlee committed Sep 9, 2024
commit 1bf0a2c488f5cd0b6b96506dcbed0f7a1b36e060
22 changes: 0 additions & 22 deletions .github/actions/cloudflare-purge/action.yml

This file was deleted.

13 changes: 7 additions & 6 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ jobs:
runs-on: ubuntu-latest
environment: production
steps:
- name: Invalidate datasheets cache
uses: ./.github/actions/cloudflare-purge
with:
api-token: ${{ secrets.CLOUDFLARE_PURGE_API_TOKEN }}
zone: ${{ secrets.CLOUDFLARE_ZONE }}
prefix: ${{ vars.DATASHEETS_BASE_URL }}
- name: Purge Cloudflare Cache
shell: bash
run: |
curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CLOUDFLARE_ZONE }}/purge_cache" \
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_PURGE_API_TOKEN }}" \
-H "Content-Type: application/json" \
--data '{"prefixes":["${{ vars.DATASHEETS_BASE_URL }}"]}'
13 changes: 7 additions & 6 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ jobs:
runs-on: ubuntu-latest
environment: staging
steps:
- name: Invalidate datasheets cache
uses: ./.github/actions/cloudflare-purge
with:
api-token: ${{ secrets.CLOUDFLARE_PURGE_API_TOKEN }}
zone: ${{ secrets.CLOUDFLARE_ZONE }}
prefix: ${{ vars.DATASHEETS_BASE_URL }}
- name: Purge Cloudflare Cache
shell: bash
run: |
curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CLOUDFLARE_ZONE }}/purge_cache" \
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_PURGE_API_TOKEN }}" \
-H "Content-Type: application/json" \
--data '{"prefixes":["${{ vars.DATASHEETS_BASE_URL }}"]}'
0