Skip to content

fix: serialize content cache refresh #440

fix: serialize content cache refresh

fix: serialize content cache refresh #440

Workflow file for this run

name: 🚀 Deploy
on:
push:
branches:
- main
- dev
pull_request: {}
permissions:
actions: write
contents: read
jobs:
lint:
name: ⬣ Oxlint
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v5
- name: ⎔ Setup node
uses: actions/setup-node@v5
with:
node-version: 22.22.0
- name: 📥 Install deps
run: npm install
- name: 🔬 Lint
run: npm run lint
- name: 💅 Format check
run: npm run format:check
deploy:
name: 🚀 Deploy
runs-on: ubuntu-latest
needs: [lint]
# only build/deploy main branch on pushes
if:
${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') &&
github.event_name == 'push' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v5
- name: 👀 Read app name
uses: SebRollen/toml-action@v1.0.2
id: app_name
with:
file: 'fly.toml'
field: 'app'
- name: ✈️ Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
- 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 }}