Skip to content
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

feat: add CDN #2871

Merged
merged 14 commits into from
Oct 23, 2024
Merged
1 change: 1 addition & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
}
],
"ignore": [
"@contentful/f36-cdn",
"@contentful/f36-layout",
"@contentful/f36-progress-stepper",
"@contentful/f36-navlist",
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/deploy-cdn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy CDN to Fastly Compute

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci --workspace=@contentful/f36-cdn
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Today I learned.

- name: Deploy to Compute
uses: fastly/compute-actions@v8
with:
project_directory: packages/cdn
service_id: ${{ secrets.CDN_FASTLY_SERVICE_ID }}
env:
FASTLY_API_TOKEN: ${{ secrets.CDN_FASTLY_TOKEN }}
Loading
Loading