ci(server): set NEXT_PUBLIC_PSE_BANDADA_GROUP_ID env var #91
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: Deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
paths: [ | |
"apps/client/**", | |
"apps/server/**", | |
"!**/*.md", | |
".github/workflows/deploy.yml", | |
] | |
jobs: | |
changed-files: | |
runs-on: ubuntu-latest | |
outputs: | |
client_any_changed: ${{ steps.changed-files.outputs.client_any_changed }} | |
server_any_changed: ${{ steps.changed-files.outputs.server_any_changed }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: tj-actions/changed-files@v44 | |
id: changed-files | |
with: | |
files_yaml: | | |
client: | |
- tsconfig.json | |
- package.json | |
- apps/{client,server}/**/* | |
server: | |
- tsconfig.json | |
- package.json | |
- apps/server/**/* | |
deploy-server: | |
needs: changed-files | |
if: needs.changed-files.outputs.server_any_changed == 'true' | |
runs-on: ubuntu-latest | |
environment: | |
name: yeap-server | |
url: https://yeap-server.fly.dev | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Deploy | |
run: | | |
flyctl deploy \ | |
--config apps/server/fly.toml \ | |
--dockerfile apps/server/Dockerfile \ | |
--remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
deploy-client: | |
needs: changed-files | |
if: needs.changed-files.outputs.client_any_changed == 'true' | |
runs-on: ubuntu-latest | |
environment: | |
name: yeap-client | |
url: https://yeap.fly.dev | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Deploy | |
run: | | |
flyctl deploy \ | |
--config apps/client/fly.toml \ | |
--dockerfile apps/client/Dockerfile \ | |
--remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |