Skip to content

nothing can stop me now #196

nothing can stop me now

nothing can stop me now #196

Workflow file for this run

name: Admin
on:
push:
branches: ["main"]
paths:
- "apps/admin/**"
- ".github/workflows/admin.yml"
pull_request:
types: [opened, synchronize]
branches: [main]
paths:
- "apps/admin/**"
- ".github/workflows/admin.yml"
workflow_dispatch: {}
jobs:
deploy:
timeout-minutes: 60
runs-on: ubuntu-latest
environment: ${{ github.ref == 'refs/heads/main' && 'prod' || 'dev' }}
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./tooling/github/setup
- name: Build
run: pnpm --filter=admin exec pnpm dlx @cloudflare/next-on-pages@1
env:
NEXT_PUBLIC_API_URL: ${{ vars.API_URL }}
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ vars.CLERK_PUBLISHABLE_KEY }}
NEXT_PUBLIC_CLERK_SIGN_IN_URL: "/sign-in"
NEXT_PUBLIC_CLERK_SIGN_UP_URL: "/sign-up"
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
- name: Deploy
id: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: ./apps/admin
command: pages deploy .vercel/output/static --project-name=admin
packageManager: pnpm
- name: Print Deployment URL
env:
DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }}
run: echo $DEPLOYMENT_URL