Skip to content

Merge pull request #60 from fac28/clean-up #26

Merge pull request #60 from fac28/clean-up

Merge pull request #60 from fac28/clean-up #26

Workflow file for this run

name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18.16.0'
- name: Install dependencies
run: npm install
# - name: Run ESLint and Prettier
# run: npm run lint-and-format
- name: Run Tests
run: npm test
- name: Set up Flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
with:
api-token: ${{ secrets.FLY_API_TOKEN }}
- name: Deploy to Fly.io
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}