From 9eee3ae47e5387d3166db0b6f38de48148809cd8 Mon Sep 17 00:00:00 2001 From: Mario Souto <13791385+omariosouto@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:29:34 -0300 Subject: [PATCH] update --- .github/workflows/continuous-delivery.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml index 888857797..07db4f452 100644 --- a/.github/workflows/continuous-delivery.yml +++ b/.github/workflows/continuous-delivery.yml @@ -5,7 +5,9 @@ on: branches: [ main ] env: - DEPLOY_MAIN_WEBHOOK: ${{ secrets.DEPLOY_MAIN_WEBHOOK }} + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} jobs: deploy: @@ -14,6 +16,14 @@ jobs: - name: Checkout uses: actions/checkout@v3 - uses: actions/setup-node@v3 - - name: "Deploy" + with: + node-version: 'v20.14.0' + - name: "Start: Deploy Static" run: | - curl $DEPLOY_MAIN_WEBHOOK + echo "====" + echo $VERCEL_PROJECT_ID + echo $VERCEL_TOKEN + echo "====" + yarn install && yarn build:static + npx vercel ./out --yes --token=$VERCEL_TOKEN --prod + echo "deployed with success!"