name: Deploy to Auth0 PROD account
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
types: [ synchronize, reopened, opened, edited ]
branches: [ "master" ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Download files from the current repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Install the auth0-deploy-cli
run: npm install -g auth0-deploy-cli
- name: Import changes to the Auth0 prod account
env:
AUTH0_CLIENT_SECRET: ${{ secrets.PROD_AUTH0_CLIENT_SECRET}}
AUTH0_DOMAIN: ${{ vars.PROD_AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ vars.PROD_AUTH0_CLIENT_ID }}
SES_ACCESS_KEY_ID: ${{ vars.PROD_SES_ACCESS_KEY_ID }}
SES_ACCESS_SECRET_KEY: ${{ secrets.PROD_SES_ACCESS_SECRET_KEY }}
run: npm run import:prod
- name: Import changes for email config to the Auth0 prod account
env:
accessKeyId: ${{ vars.PROD_SES_ACCESS_KEY_ID }}
secretAccessKey: ${{ secrets.PROD_SES_ACCESS_SECRET_KEY }}
run: npm run import-email-config:prod
{
"name": "auth0",
"version": "1.0.0",
"scripts": {
"export:prod": "a0deploy export --strip --format directory --output_folder . --config_file config_prod.json",
"import:prod": "a0deploy import --input_file . --config_file config_prod.json",
"import-email-config:prod": "a0deploy import --input_file . --config_file ./emails/provider.json"
},
"dependencies": {
"auth0-deploy-cli": "^7.17.4"
}
}
how can i replace credentials of email provider during github action deployment. above example does not put varaibles into emails/provider.json file