forked from dubinc/dub
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 891 Bytes
/
deploy-embed-script.yml
File metadata and controls
33 lines (28 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: "Deploy embed script"
on:
push:
branches:
- main
paths:
- "packages/embeds/core/**"
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies & build
run: pnpm --filter @dub/embed-core build
# - name: Deploy to Cloudflare Pages (https://www.dubcdn.com/embed/script.js)
# uses: cloudflare/wrangler-action@v3
# with:
# apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_KEY }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# command: pages deploy dist/embed/script.js --project-name=dub-cdn --commit-dirty=true
# workingDirectory: packages/embeds/core
# packageManager: pnpm