diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml new file mode 100644 index 0000000000..dc7526629a --- /dev/null +++ b/.github/workflows/production.yml @@ -0,0 +1,46 @@ +name: Deploy Production Branch + +on: + push: + branches: + - master + schedule: + - cron: '0 6,18 * * *' + +jobs: + + call-atlas: + uses: ./.github/workflows/realm.yml + secrets: inherit + with: + sha: ${{ github.sha }} + environment: production + + call-test-build: + uses: ./.github/workflows/test-build.yml + secrets: inherit + needs: call-atlas + with: + sha: ${{ github.sha }} + environment: production + netlify-context: production + + call-test: + uses: ./.github/workflows/test.yml + needs: call-test-build + secrets: inherit + with: + sha: ${{ github.sha }} + environment: production + + call-deploy: + uses: ./.github/workflows/deploy.yml + needs: call-test + secrets: inherit + permissions: + pull-requests: write + with: + environment: production + sha: ${{ github.sha }} + netlify-context: production + netlify-alias: diff --git a/.github/workflows/run_build.yml b/.github/workflows/run_build.yml deleted file mode 100644 index d6d0898ed0..0000000000 --- a/.github/workflows/run_build.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: 'Netlify Deploy to Production' - -on: - schedule: - - cron: "0 6,18 * * *" - -jobs: - deploy: - name: 'Deploy' - runs-on: ubuntu-latest - - steps: - - name: Curl request - run: curl -X POST -d {} ${{ secrets.NETLIFYBUILDURL }}