fix: update outdated hasura URL #85
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Deploy to Vercel" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: ["main"] | |
| env: | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
| VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
| jobs: | |
| cd: | |
| environment: "production" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: "Check out the repo" | |
| uses: "actions/checkout@v4" | |
| - name: | |
| "Cache the node modules. If a match is found for the key, the cache is restored. Otherwise, a new cache will | |
| be created." | |
| uses: "actions/cache@v4" | |
| with: | |
| key: "node-modules-${{ github.sha }}" | |
| path: node_modules | |
| - name: "Install Bun" | |
| uses: "oven-sh/setup-bun@v1" | |
| - name: "Install the dependencies" | |
| run: "bun install --frozen-lockfile" | |
| - name: "Lint the code" | |
| run: "bun run check" | |
| - name: "Pull Vercel environment information" | |
| run: "bun vercel pull --environment=production --token=$VERCEL_TOKEN --yes" | |
| - name: "Build the website" | |
| run: "bun vercel build --prod --token=$VERCEL_TOKEN" | |
| - name: "Add build summary" | |
| run: | | |
| echo "## Build results" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ Passed" >> $GITHUB_STEP_SUMMARY | |
| - name: "Deploy to Vercel" | |
| run: "bun vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN" | |
| - name: "Add deploy summary" | |
| run: | | |
| echo "## Deploy results" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ Passed" >> $GITHUB_STEP_SUMMARY |