Merge branch 'lesson-20' into lesson-21 #7
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: 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 }} |