Skip to content

Commit

Permalink
ci: turn inputs to env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-hosseini-deriv committed Nov 7, 2023
1 parent 0e0382e commit a1763d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/publish_to_pages_production/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ runs:
using: composite
steps:
- name: Publish to cloudflare pages (production)
env:
CLOUDFLARE_ACCOUNT_ID: ${{ inputs.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ inputs.CLOUDFLARE_API_TOKEN }}
run: |-
cd dist
npx -y wrangler pages deploy . --project-name=deriv-binary-static-pages --branch=main
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/publish_to_pages_staging/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ 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 }}
run: |-
cd dist
npx -y wrangler pages deploy . --project-name=deriv-binary-static-pages --branch=staging
Expand Down

0 comments on commit a1763d7

Please sign in to comment.