cleanup readme #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Deploy Server" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
working-directory: ./apps/server | |
- name: Generate Prisma Client | |
working-directory: ./apps/server | |
run: pnpm prisma generate | |
- name: Build | |
working-directory: ./apps/server | |
run: pnpm build | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --remote-only ./apps/server/build | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |