Skip to content

Merge pull request #126 from deriv-com/dependabot/npm_and_yarn/word-w… #39

Merge pull request #126 from deriv-com/dependabot/npm_and_yarn/word-w…

Merge pull request #126 from deriv-com/dependabot/npm_and_yarn/word-w… #39

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'