Skip to content

paths-ignore

paths-ignore #5

name: πŸš€ Deploy Scheduler
on:
push:
branches:
- main
paths-ignore:
- 'apps/app/**'
pull_request: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: write
contents: read
jobs:
lint:
name: ⬣ ESLint
runs-on: ubuntu-22.04
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🍞 Setup Bun
uses: oven-sh/setup-bun@v1
- name: πŸ“₯ Download deps
run: bun install --frozenLockfile
- name: πŸ”¬ Lint
run: bun lint
typecheck:
name: Κ¦ TypeScript
runs-on: ubuntu-22.04
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🍞 Setup Bun
uses: oven-sh/setup-bun@v1
- name: πŸ“₯ Download deps
run: bun install --frozenLockfile
- name: πŸ”Ž Type check
run: bun typecheck
working-directory: apps/scheduler
deploy:
name: πŸš€ Deploy
runs-on: ubuntu-22.04
needs: [lint, typecheck]
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: πŸš€ Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: 'apps/scheduler'