Skip to content

Commit

Permalink
Merge pull request #13 from ali-hosseini-deriv/ako/add-vercel-DR-action
Browse files Browse the repository at this point in the history
Ako/ create vercel project.json file
  • Loading branch information
ali-hosseini-deriv authored Jul 26, 2024
2 parents ab25930 + b5d6935 commit 8a3b27b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/actions/vercel_DR_publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ runs:
run: npm install -g vercel
shell: bash

- name: Setup Vercel project
run: |
mkdir -p .vercel
echo '{
"projectId": "${{ inputs.VERCEL_PROJECT_ID }}",
"orgId": "${{ inputs.VERCEL_ORG_ID }}"
}' > .vercel/project.json
shell: bash

- name: Pull Vercel project
shell: bash
env:
Expand All @@ -44,7 +53,6 @@ runs:
VERCEL_TOKEN: ${{ inputs.VERCEL_TOKEN }}
VERCEL_SCOPE: ${{ inputs.VERCEL_SCOPE }}
ALIAS_DOMAIN_URL: ${{ inputs.ALIAS_DOMAIN_URL }}

if: ${{ inputs.ENVIRONMENT }} == 'Staging'
shell: bash
run: |
Expand Down

0 comments on commit 8a3b27b

Please sign in to comment.