Skip to content

Papi migration

Papi migration #1463

name: UI deployment
on:
push:
branches: ['main']
paths: ['packages/ui/**/*']
pull_request:
branches: ['main']
paths: ['packages/ui/**/*']
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/ui/
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: 20
cache-dependency-path: 'yarn.lock'
- run: corepack enable
- run: yarn install --immutable
- run: yarn build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 2238a825c5aca59233eab1f221f7aefb
projectName: multix
directory: ./packages/ui/build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}