This repository was archived by the owner on Apr 11, 2025. It is now read-only.
Merge pull request #118 from deriv-com/dependabot/npm_and_yarn/sidewa… #29
This file contains hidden or 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: Sinbad Staging Workflow | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build_test_and_publish: | |
| name: Build, Test and Publish to Cloudflare Staging | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
| - name: Tag | |
| uses: "./.github/actions/tag" | |
| - name: Install npm packages | |
| uses: "./.github/actions/npm_install_from_cache" | |
| - name: Invalidate Cache | |
| uses: ./.github/actions/invalidate_master_cache | |
| - name: Build | |
| uses: "./.github/actions/build" | |
| with: | |
| NODE_ENV: staging | |
| - name: Publish to Cloudflare Pages Staging | |
| uses: "./.github/actions/publish_to_pages_staging" | |
| with: | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| - name: Upload to vercel | |
| uses: 'deriv-com/shared-actions/.github/actions/vercel_DR_publish@master' | |
| with: | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
| VERCEL_TOKEN: ${{ secrets.VERCEL_API_TOKEN }} | |
| ENVIRONMENT: Preview | |
| VERCEL_SCOPE: deriv | |
| ALIAS_DOMAIN_URL: 'staging-sinbad-dr.binary.sx' |