From 162df5fe21f95752e868d6ad2d05e60b70fb6557 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Fri, 17 Feb 2023 13:44:57 +0000 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7add6ae1a..e73fddb26 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -115,3 +115,22 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + deploy_docs: + name: Deploy docs + runs-on: ubuntu-latest + # needs: release + # if: needs.release.outputs.published == 'true' + environment: + name: js-documentation + url: ${{ steps.deploy.outputs.url }} + steps: + - name: Git checkout + uses: actions/checkout@v3 + + - name: Deploy to Vercel + id: deploy + env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + run: echo "url=$(vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }})" | tee $GITHUB_OUTPUT