diff --git a/.github/workflows/vercel-merge.yml b/.github/workflows/vercel-merge.yml index e6eb534..eac0663 100644 --- a/.github/workflows/vercel-merge.yml +++ b/.github/workflows/vercel-merge.yml @@ -8,6 +8,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: dkershner6/vercel-set-env-action@v3 + with: + token: ${{ secrets.VERCEL_TOKEN }} + teamId: ${{ secrets.ORG_ID }} + projectName: internal-ctf + envVariableKeys: ADMIN_TOKEN + env: + ADMIN_TOKEN: ${{ secrets.ADMIN_TOKEN }} + TARGET_ADMIN_TOKEN: preview,development,production + TYPE_ADMIN_TOKEN: encrypted + - uses: amondnet/vercel-action@v20 with: vercel-token: ${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/vercel-pull-request.yml b/.github/workflows/vercel-pull-request.yml index 1836dee..8c135c4 100644 --- a/.github/workflows/vercel-pull-request.yml +++ b/.github/workflows/vercel-pull-request.yml @@ -8,6 +8,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: dkershner6/vercel-set-env-action@v3 + with: + token: ${{ secrets.VERCEL_TOKEN }} + teamId: ${{ secrets.ORG_ID }} + projectName: internal-ctf + envVariableKeys: ADMIN_TOKEN + env: + ADMIN_TOKEN: ${{ secrets.ADMIN_TOKEN }} + TARGET_ADMIN_TOKEN: preview,development,production + TYPE_ADMIN_TOKEN: encrypted + - uses: amondnet/vercel-action@v20 id: vercel-deploy with: