Skip to content

Commit

Permalink
Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
omfj committed Jan 28, 2025
1 parent 0d904b1 commit 09851f2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,44 @@ on:
push:
branches:
- main
# TODO: Remove me when merge to main
pull_request:
branches:
- main

jobs:
web:
runs-on: ubuntu-latest

steps:
- name: πŸ” Checkout
uses: actions/checkout@v4

- name: πŸ“¦ Setup pnpm
uses: pnpm/action-setup@v4

- name: 🐒 Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: ./pnpm-lock.yaml

- name: πŸ“¦ Install dependencies
run: pnpm install --frozen-lockfile

- name: πŸͺ° Setup Fly
uses: superfly/flyctl-actions/setup-flyctl@master

- name: πŸš€ Deploy
run: flyctl deploy --config apps/web/fly.toml --dockerfile apps/web/Dockerfile --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

api:
runs-on: ubuntu-latest
# TODO: Remove me when merge to main
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

steps:
- name: πŸ” Checkout
Expand Down

0 comments on commit 09851f2

Please sign in to comment.