Skip to content

change branch nameclear #1

change branch nameclear

change branch nameclear #1

Workflow file for this run

name: Deriv Api Docs Staging Workflow
on:
push:
branches:
- test-workflow
jobs:
build_and_publish:
name: Builds and Publishes to Cloudflare Pages Staging
runs-on: Runner_16cores_Deriv-app # TODO: Replace this with the appropriate runner for Deriv-Api-Docs when provided
environment: Staging
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/setup_node
- name: Install Dependencies
uses: ./.github/actions/npm_install_from_cache
- name: Build
uses: ./.github/actions/build
with:
CA_CRT: ${{ secrets.CA_CRT }}
CA: ${{ secrets.CA }}
CONTEXT_ARTIFACT_S3_BUCKET: ${{ secrets.CONTEXT_ARTIFACT_S3_BUCKET }}
DATADOG_APPLICATION_ID: ${{ vars.DATADOG_APPLICATION_ID }}
DATADOG_CLIENT_TOKEN: ${{ vars.DATADOG_CLIENT_TOKEN }}
DOCKERHUB_ORGANISATION: ${{ vars.DOCKERHUB_ORGANISATION }}
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKHUB_ORGANISATION: ${{ vars.DOCKHUB_ORGANISATION }}
KUBE_SERVER: ${{ secrets.KUBE_SERVER }}
NODE_ENV: staging
SERVICEACCOUNT_TOKEN: ${{ secrets.SERVICEACCOUNT_TOKEN }}
- name: Versioning
uses: ./.github/actions/versioning
with:
version_name: 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 }}
version: $(echo cat build/version | bash)