Skip to content

feat: hero reference to meme stream #38

feat: hero reference to meme stream

feat: hero reference to meme stream #38

Workflow file for this run

name: πŸš€ Deploy
on:
push:
branches:
- main
- dev
pull_request: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: write
contents: read
jobs:
build:
name: πŸš€ Build
runs-on: ubuntu-22.04
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: πŸ“¦ Install Dependencies
run: npm install
- name: πŸ”¨ Build Project
run: npm run build
# needs: [lint, typecheck, vitest, playwright]
deploy:
name: πŸš€ Deploy
runs-on: ubuntu-22.04
needs: build
# needs: [lint, typecheck, vitest, playwright]
# only build/deploy branches on pushes
if: ${{ github.event_name == 'push' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: πŸ‘€ Read app name
uses: SebRollen/toml-action@v1.0.2
id: app_name
with:
file: 'fly.toml'
field: 'app'
# move Dockerfile to root
- name: 🚚 Move Dockerfile
run: |
mv ./other/Dockerfile ./Dockerfile
mv ./other/.dockerignore ./.dockerignore
- name: 🎈 Setup Fly
uses: superfly/flyctl-actions/setup-flyctl@v1.4
- name: πŸš€ Deploy Staging
if: ${{ github.ref == 'refs/heads/dev' }}
run: flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}
--app ${{ steps.app_name.outputs.value }}-staging
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: πŸš€ Deploy Production
if: ${{ github.ref == 'refs/heads/main' }}
run: flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}