Skip to content

Commit

Permalink
feat: add CDN (#2871)
Browse files Browse the repository at this point in the history
Co-authored-by: Lewis Cowper <593574+lewiscowper@users.noreply.github.com>
  • Loading branch information
andipaetzold and lewiscowper authored Oct 23, 2024
1 parent c41f7b3 commit 6957f9e
Show file tree
Hide file tree
Showing 12 changed files with 3,748 additions and 392 deletions.
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
- 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

0 comments on commit 6957f9e

Please sign in to comment.