diff --git a/.github/README.md b/.github/README.md index 341dcb5ff1..3051a32d51 100644 --- a/.github/README.md +++ b/.github/README.md @@ -109,7 +109,7 @@ To make sure repository admins can control the full workflow of our apps to prod - Demo deployments must be [manually triggered](https://github.com/centrifuge/apps/actions/workflows/demo-deploys.yml). They are not required for the release process. -- Catalyst deployments are triggered by pushing a tag containing `rc` in the tag name. +- Catalyst deployments are triggered by pushing a tag containing `centrifuge-app-v*` in the tag name. - Altair and staging are triggered by creating a `pre-release` [on the Github repository](https://github.com/centrifuge/apps/releases/new) @@ -130,11 +130,11 @@ More info on our release process rationale can be found in [our HackMD](https:// ## Releasing to staging, Altair, and Prod/Centrifuge ### 1. Create a release and mark it as a pre-Release --> Deploys to pp.staging.centrifuge.io) and app.altair.centrifuge.io +-> Deploys to app.staging.centrifuge.io and app.altair.centrifuge.io Navigate to create a new [pre-release](https://github.com/centrifuge/apps/releases/new). Make sure to tick the `pre-release` option. -1. Use an existing tag `rc` created to release Catalyst or create a new `centrifuge-app-vX.YY` tag on the release screen. Only tags starting with `rc*` or `centrifuge-app-v*` will meet the requirements for deployments +1. Create a new `centrifuge-app-vX.YY` tag on the release screen. Only tags starting with `centrifuge-app-v*` will meet the requirements for deployments: - Major version: release includes new features/improvments - Minor version: release only includes bug fixes 2. Name the release `CentrifugeApp vX.X` diff --git a/.github/actions/prepare-deploy/action.yml b/.github/actions/prepare-deploy/action.yml index 2f70d02304..5d07477106 100644 --- a/.github/actions/prepare-deploy/action.yml +++ b/.github/actions/prepare-deploy/action.yml @@ -60,7 +60,7 @@ runs: echo "front_url=app.staging.centrifuge.io" >> $GITHUB_OUTPUT echo "env_name=production" >> $GITHUB_OUTPUT # env_name is production because it needs to use the prod variable files inside each app - elif ${{ contains(github.ref, 'refs/tags/rc') }}; then + elif ${{ inputs.deploy_to == 'catalyst' }}; then # CATALYST echo "function_name=${{ inputs.app_base_name }}-catalyst" >> $GITHUB_OUTPUT echo "front_url=${{ inputs.app_base_name }}-catalyst.k-f.dev" >> $GITHUB_OUTPUT diff --git a/.github/workflows/catalyst-deploy.yml b/.github/workflows/catalyst-deploy.yml new file mode 100644 index 0000000000..3c6d323231 --- /dev/null +++ b/.github/workflows/catalyst-deploy.yml @@ -0,0 +1,31 @@ +name: Deploy Catalyst +on: + push: + tags: + - "centrifuge-app/v*" +concurrency: + # Cancel any staging or prod deployment on-going + # in favor of this new pre-release + group: catalyst-deployment + cancel-in-progress: true + +jobs: + app-staging: + uses: ./.github/workflows/centrifuge-app.yml + secrets: inherit + with: + deploy_env: catalyst + + + pinning-staging: + uses: ./.github/workflows/pinning-api.yml + secrets: inherit + with: + deploy_env: catalyst + + + onboarding-staging: + uses: ./.github/workflows/onboarding-api.yml + secrets: inherit + with: + deploy_env: catalyst \ No newline at end of file diff --git a/.github/workflows/centrifuge-app.yml b/.github/workflows/centrifuge-app.yml index 5823679433..27940baf40 100644 --- a/.github/workflows/centrifuge-app.yml +++ b/.github/workflows/centrifuge-app.yml @@ -3,8 +3,6 @@ on: push: branches: - main - tags: - - "rc*" paths: - 'centrifuge-app/**' - 'centrifuge-js/**' diff --git a/.github/workflows/onboarding-api.yml b/.github/workflows/onboarding-api.yml index 43cf21e386..55b2c36e9d 100644 --- a/.github/workflows/onboarding-api.yml +++ b/.github/workflows/onboarding-api.yml @@ -3,8 +3,6 @@ on: push: branches: - main - tags: - - "rc*" paths: - 'onboarding-api/**' - '.github/workflows/onboarding-api.yml' diff --git a/.github/workflows/pinning-api.yml b/.github/workflows/pinning-api.yml index bf9e4d5ba8..a1808e49fe 100644 --- a/.github/workflows/pinning-api.yml +++ b/.github/workflows/pinning-api.yml @@ -3,8 +3,6 @@ on: push: branches: - main - tags: - - "rc*" paths: - 'pinning-api/**' - '.github/workflows/pinning-api.yml'