Skip to content

Commit

Permalink
Merge pull request #133 from adrienne-deriv/analytics-env-workflow
Browse files Browse the repository at this point in the history
Added environment variables for analytics in workflow
  • Loading branch information
amam-deriv authored Oct 2, 2024
2 parents bcccb28 + 0f66808 commit 4b09f67
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,24 @@ inputs:
TRACKJS_TOKEN:
description: Trackjs Token
required: false
RUDDERSTACK_KEY:
description: Rudderstack key for analytics
required: false
GROWTHBOOK_CLIENT_KEY:
description: Growthbook client key for analytics
required: false
GROWTHBOOK_DECRYPTION_KEY:
description: Growthbook decryption key for analytics
required: false
runs:
using: composite
steps:
- name: Building Docusaurus project
env:
NODE_ENV: ${{ inputs.NODE_ENV }}
TRACKJS_TOKEN: ${{ inputs.TRACKJS_TOKEN }}
RUDDERSTACK_KEY: ${{ inputs.RUDDERSTACK_KEY }}
GROWTHBOOK_CLIENT_KEY: ${{ inputs.GROWTHBOOK_CLIENT_KEY }}
GROWTHBOOK_DECRYPTION_KEY: ${{ inputs.GROWTHBOOK_DECRYPTION_KEY }}
run: npm run build
shell: bash
3 changes: 3 additions & 0 deletions .github/workflows/release_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
with:
NODE_ENV: production
TRACKJS_TOKEN: ${{ secrets.TRACKJS_TOKEN }}
RUDDERSTACK_KEY: ${{ vars.RUDDERSTACK_KEY }}
GROWTHBOOK_DECRYPTION_KEY: ${{ secrets.GROWTHBOOK_DECRYPTION_KEY }}
GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }}
- name: Versioning
uses: ./.github/actions/versioning
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
uses: ./.github/actions/build
with:
NODE_ENV: staging
RUDDERSTACK_KEY: ${{ vars.RUDDERSTACK_KEY }}
GROWTHBOOK_DECRYPTION_KEY: ${{ secrets.GROWTHBOOK_DECRYPTION_KEY }}
GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }}
- name: Versioning
uses: ./.github/actions/versioning
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
with:
NODE_ENV: staging
TRACKJS_TOKEN: ${{ secrets.TRACKJS_TOKEN }}
RUDDERSTACK_KEY: ${{ vars.RUDDERSTACK_KEY }}
GROWTHBOOK_DECRYPTION_KEY: ${{ secrets.GROWTHBOOK_DECRYPTION_KEY }}
GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }}
- name: Versioning
uses: ./.github/actions/versioning
with:
Expand Down

0 comments on commit 4b09f67

Please sign in to comment.