From 374d6c22f92ffd6ef3b8c875d389ba76c61dbc5d Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sun, 15 Dec 2024 19:25:13 -0600 Subject: [PATCH] feat: use artifact --- .github/workflows/website.yml | 21 +++++++++++---------- .gitignore | 1 + vercel.json | 6 ++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index c09345069..c81909adb 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -72,16 +72,17 @@ jobs: runs-on: ubuntu-latest environment: name: Preview - url: ${{ steps.deployment.outputs.page_url }} steps: - - uses: oven-sh/setup-bun@v1 + - name: Download artifact + uses: actions/download-artifact@v4 + with: + path: ./dist/website - - name: Install Vercel CLI - run: bun install --global vercel@latest - - - name: Pull Vercel environment information - run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - - - name: Deploy project artifacts to vercel - run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} + - uses: amondnet/vercel-action@v25 + with: + vercel-token: ${{ secrets.VERCEL_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} + vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} + vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} + working-directory: ./dist/website diff --git a/.gitignore b/.gitignore index 7cb0c5661..8834744dc 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ target # !packages/core/src/protos/*.proto /.vercel /.astro +.vercel diff --git a/vercel.json b/vercel.json index 540ffc64e..80e57248a 100644 --- a/vercel.json +++ b/vercel.json @@ -1,7 +1,5 @@ { - "git": { - "deploymentEnabled": { - "main": false - } + "github": { + "enabled": false } }