Merge pull request #132 from ali-hosseini-deriv/ako/remove-circleci-w… #2
This file contains 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@v4 | |
- 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 }} |