Skip to content

Merge pull request #36 from PedroCavalheiro/patch-3 #10

Merge pull request #36 from PedroCavalheiro/patch-3

Merge pull request #36 from PedroCavalheiro/patch-3 #10

Workflow file for this run

name: Deploy to Fly
on: [push]
jobs:
deploy:
name: Deploy proxy
runs-on: ubuntu-latest
environment: production
steps:
# Checkout to repo
- uses: actions/checkout@v4
# Initialize fly.io CLI
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm install
- run: npm run build
- run: npm run test
# Deploy to fly.io with a remote runner
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}