Skip to content

Merge pull request #76 from UoaWDCC/fix/footer-2 #55

Merge pull request #76 from UoaWDCC/fix/footer-2

Merge pull request #76 from UoaWDCC/fix/footer-2 #55

name: Fly Deploy Staging
on:
push:
branches:
- main
jobs:
deploy-web:
name: Deploy Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config fly.staging.toml --build-secret VITE_API_URL=${{ secrets.VITE_API_URL }} --build-secret VITE_STRAPI_URL=${{ secrets.VITE_STRAPI_URL }} --build-secret VITE_CLERK_PUBLISHABLE_KEY=${{ secrets.VITE_CLERK_PUBLISHABLE_KEY }}
working-directory: ./web
env:
FLY_API_TOKEN: ${{ secrets.FLY_STAGING_API_TOKEN }}
deploy-api:
name: Deploy Api
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config fly.staging.toml
working-directory: ./api
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_STAGING_API_TOKEN }}