Skip to content

chore: readmes

chore: readmes #649

name: Cloudflare Deploy Widget
on:
push:
branches:
- main
- dev
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: corepack enable
- uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 18
- run: yarn install --immutable
- run: yarn run build:widget
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: sygma-widget
directory: ./packages/widget/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}