Skip to content

Commit

Permalink
fix: resolve pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-deriv committed Sep 19, 2023
1 parent 77a7648 commit 9e2c06c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
7 changes: 6 additions & 1 deletion .github/actions/publish_to_pages_production/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: publish_to_pages_production
inputs:
CLOUDFLARE_API_TOKEN:
description: 'Cloudflare Pages token'
required: true
runs:
using: composite
env:
CLOUDFLARE_API_TOKEN: ${{ inputs.CLOUDFLARE_API_TOKEN }}
steps:
- name: Publish to cloudflare pages (production)
environment: Production
Expand All @@ -9,4 +15,3 @@ runs:
npx wrangler pages publish . --project-name=deriv-static-content-pages --branch=main
echo "New website - REDACTED-pages-deriv-static-content.deriv.com"
shell: bash

4 changes: 2 additions & 2 deletions .github/actions/send_slack_notifications/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ inputs:
required: true
release_type:
description: 'Release type'
required: true
required: false
default: 'Production'
version:
description: 'Version'
required: true
Expand All @@ -36,4 +37,3 @@ runs:
}' \
$SLACK_WEBHOOK_URL
shell: bash

22 changes: 15 additions & 7 deletions .github/workflows/release_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@ name: binary-com/deriv-static-content/release_production
on:
push:
branches:
- master
- master
jobs:
release_production:
runs-on: ubuntu-latest
container:
image: node:18.16.1
steps:
- uses: actions/[email protected]
- uses: "./.github/actions/versioning"
with:
target_branch: production
- uses: "./.github/actions/publish_to_pages_production"
- uses: "./.github/actions/send_slack_notifications"
- uses: actions/[email protected]
- uses: "./.github/actions/versioning"
with:
target_branch: production
- uses: "./.github/actions/publish_to_pages_production"
with:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- uses: technote-space/workflow-conclusion-action@v3
- uses: "./.github/actions/send_slack_notifications"
with:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
status: ${{ env.WORKFLOW_CONCLUSION }}
release_type: Production
version: $(echo cat packages/core/dist/version | bash)

0 comments on commit 9e2c06c

Please sign in to comment.