Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

chore: updated workflow #290

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/actions/publish_to_pages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,21 @@ inputs:
CF_BRANCH:
description: Cloudflare branch
required: true
PROJECT_NAME:
description: Cloudflare project name
required: true
runs:
using: composite
steps:
- name: Publish to cloudflare pages (staging)
env:
CLOUDFLARE_ACCOUNT_ID: ${{ inputs.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ inputs.CLOUDFLARE_API_TOKEN }}
CF_BRANCH: ${{ inputs.CF_BRANCH }}
PROJECT_NAME: ${{ inputs.PROJECT_NAME }}
run: |-
npm i wrangler@3.10.1
cd build
npx wrangler pages deploy . --project-name=deriv-developers-portal-pages --branch=${{ inputs.CF_BRANCH }}
echo "New staging website - https://staging-api.deriv.com/"
npx wrangler pages deploy . --project-name=${{ env.PROJECT_NAME }} --branch=${{ env.CF_BRANCH }}
echo "New staging website - https://${{ env.CF_BRANCH }}-api.deriv.com/"
shell: bash
1 change: 1 addition & 0 deletions .github/workflows/release_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CF_BRANCH: staging
PROJECT_NAME: deriv-developers-portal-pages
- name: Publish to Docker
uses: ./.github/actions/publish_to_docker
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ jobs:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CF_BRANCH: test
PROJECT_NAME: deriv-developers-portal-test-pages