Skip to content

Commit

Permalink
Set env for working admin challs
Browse files Browse the repository at this point in the history
  • Loading branch information
ky28059 committed Nov 9, 2024
1 parent 088007a commit a1c8950
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/vercel-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/vercel-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a1c8950

Please sign in to comment.