Skip to content

Merge branch 'lesson-20' into lesson-21 #7

Merge branch 'lesson-20' into lesson-21

Merge branch 'lesson-20' into lesson-21 #7

Workflow file for this run

name: Fly Deploy
on:
push:
branches: lesson-21 # put main to build production
workflow_dispatch:
jobs:
deploy:
name: Deploy blog
runs-on: ubuntu-latest
steps:
- name: Checkout repo using Git
uses: actions/checkout@v3
- name: Setup node 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Run deploy script
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}