Skip to content

Scope get event id endpoint to admins only (#817) #385

Scope get event id endpoint to admins only (#817)

Scope get event id endpoint to admins only (#817) #385

name: Fly Deploy Staging
on:
push:
branches:
- master
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_STAGING_API_TOKEN }}
jobs:
deploy-api:
name: Deploy Api
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl secrets set --config fly.staging.toml "GOOGLE_SERVICE_ACCOUNT_JSON=$(echo ${{ secrets.STAGING_SERVER_SERVICE_ACCOUNT }} | base64 --decode)" STRIPE_WEBHOOK_SECRET=${{ secrets.STAGING_SERVER_STRIPE_WEBHOOK_SECRET }} STRIPE_API_KEY=${{ secrets.STAGING_SERVER_STRIPE_API_KEY }} FRONTEND_URL=${{ secrets.STAGING_FRONTEND_URL }} NODE_MAILER_EMAIL=${{ secrets.STAGING_EMAIL }} NODE_MAILER_PASSWORD=${{ secrets.STAGING_EMAIL_PASSWORD }}
- run: flyctl secrets deploy --config fly.staging.toml
- run: flyctl deploy --remote-only --config fly.staging.toml