diff --git a/.github/workflows/check-and-deploy.yml b/.github/workflows/check-and-deploy.yml index 50300bba5..2eee23bb9 100644 --- a/.github/workflows/check-and-deploy.yml +++ b/.github/workflows/check-and-deploy.yml @@ -46,34 +46,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - # need to update once we get the vercel access - - uses: amondnet/vercel-action@v25 - id: vercel - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - vercel-token: ${{ secrets.VERCEL_TOKEN }} - vercel-org-id: ${{ vars.VERCEL_ORG_ID}} - vercel-project-id: ${{ vars.VERCEL_PROJECT_ID}} - working-directory: ./ - scope: ${{ vars.VERCEL_ORG_ID }} - - deploy-uniswap-staging: - name: Deploy Uniswap Blog Staging - if: github.ref == 'refs/heads/main' - needs: check-uniswap-benchmarks - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: amondnet/vercel-action@v25 - id: vercel - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - vercel-token: ${{ secrets.VERCEL_TOKEN }} - vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} - vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} - working-directory: ./ - scope: ${{ secrets.VERCEL_ORG_ID }} - vercel-args: '--prod' + - name: Install Vercel CLI + run: npm install --global vercel@latest + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} audit_with_lighthouse: name: Audit with Lighthouse