Merge pull request #60 from fac28/clean-up #26
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: 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 }} |