diff --git a/.github/workflows/deploy-vercel.yml b/.github/workflows/deploy-vercel.yml index b355225..2e0278f 100644 --- a/.github/workflows/deploy-vercel.yml +++ b/.github/workflows/deploy-vercel.yml @@ -3,7 +3,7 @@ name: deploy on: push: branches: - - main + - main workflow_call: {} workflow_dispatch: inputs: @@ -14,12 +14,13 @@ on: run-name: deploy-${{ github.ref_name }}-${{ github.run_number }} -permissions: - contents: read +permissions: read-all jobs: deploy: runs-on: ubuntu-latest steps: - name: Trigger Vercel Deployment - run: curl -X POST https://api.vercel.com/v1/integrations/deploy/ \ No newline at end of file + env: + VERCEL_DEPLOY_TOKEN: ${{ secrets.VERCEL_DEPLOY_TOKEN }} + run: curl -X POST https://api.vercel.com/v1/integrations/deploy/${{ env.VERCEL_DEPLOY_TOKEN }} \ No newline at end of file