Skip to content

Commit

Permalink
simplify deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Mar 22, 2024
1 parent b7b1713 commit 5862236
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand All @@ -43,18 +43,13 @@ jobs:

steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

# move Dockerfile to root
- name: 🚚 Move Files
run: |
mv ./kcdshop/deployed/fly.toml ./fly.toml
mv ./kcdshop/deployed/Dockerfile ./Dockerfile
mv ./kcdshop/deployed/.dockerignore ./.dockerignore
- name: 🎈 Setup Fly
uses: superfly/flyctl-actions/[email protected]

- name: 🚀 Deploy Production
uses: superfly/[email protected]
with:
args: 'deploy --remote-only'
run: flyctl deploy --remote-only
working-directory: ./kcdshop/deploy
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 comments on commit 5862236

Please sign in to comment.