allow admins to reset all memberships on front end (#827) #390
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |