diff --git a/.github/workflows/deploy-fdr-dev.yml b/.github/workflows/deploy-fdr-dev.yml index 44148d68ad..47efcb7fa9 100644 --- a/.github/workflows/deploy-fdr-dev.yml +++ b/.github/workflows/deploy-fdr-dev.yml @@ -1,19 +1,18 @@ name: Deploy FDR Dev on: - pull_request - # push: - # branches: - # - main - # paths: - # - "fern/apis/fdr/**" - # - "fern/fern.config.json" - # - "servers/fdr-deploy/**" - # - "servers/fdr/**" - # - ".github/workflows/deploy-fdr-dev.yml" - # - ".github/workflows/publish-fdr-sdk.yml" - # - "packages/fdr-sdk/**" - # - "pnpm-lock.yaml" + push: + branches: + - main + paths: + - "fern/apis/fdr/**" + - "fern/fern.config.json" + - "servers/fdr-deploy/**" + - "servers/fdr/**" + - ".github/workflows/deploy-fdr-dev.yml" + - ".github/workflows/publish-fdr-sdk.yml" + - "packages/fdr-sdk/**" + - "pnpm-lock.yaml" env: PACKAGE_NAME: "@fern-platform/fdr" @@ -76,15 +75,15 @@ jobs: # env: # DATABASE_URL: ${{ secrets.DEV_POSTGRES_URL }}/fdr?schema=public - # - name: 🚀 cdk deploy - # run: | - # git_version="$(scripts/git-version.sh)" - # pnpm --filter=@fern-platform/fdr run docker:dev "${git_version}" - # npm install -g aws-cdk - # cd servers/fdr-deploy - # VERSION="${git_version}" pnpm --filter=@fern-platform/fdr-deploy deploy:dev - # env: - # DATABASE_URL: ${{ secrets.DEV_POSTGRES_URL }}/fdr?schema=public + - name: 🚀 cdk deploy + run: | + git_version="$(scripts/git-version.sh)" + pnpm --filter=@fern-platform/fdr run docker:dev "${git_version}" + npm install -g aws-cdk + cd servers/fdr-deploy + VERSION="${git_version}" pnpm --filter=@fern-platform/fdr-deploy deploy:dev + env: + DATABASE_URL: ${{ secrets.DEV_POSTGRES_URL }}/fdr?schema=public smoke-test: needs: deploy_dev