Skip to content

Commit

Permalink
fix: update deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
limsohee1002 committed Oct 11, 2024
1 parent 85ed631 commit 6310e17
Showing 1 changed file with 8 additions and 28 deletions.
36 changes: 8 additions & 28 deletions .github/workflows/check-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6310e17

Please sign in to comment.