Merge pull request #135 from hack-a-chain-software/improvements #176
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: Preview | |
| # on: | |
| # pull_request: | |
| # paths: | |
| # - 'web/**' | |
| jobs: | |
| frontend_dev_deploy: | |
| runs-on: ubuntu-latest | |
| env: | |
| CG_KEY: ${{ vars.CG_KEY }} | |
| API_URL: ${{ vars.API_URL }} | |
| VERCEL_ORG_ID: ${{ vars.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ vars.VERCEL_PROJECT_ID }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20.x | |
| - name: Install yarn | |
| run: npm install -g yarn | |
| - name: Install Vercel CLI | |
| run: npm i -g vercel | |
| - name: Install dependencies | |
| run: yarn --frozen-lockfile | |
| - name: Pull vercel setup | |
| run: vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }} | |
| - name: Build Project Artifacts | |
| env: | |
| NITRO_PRESET: vercel | |
| run: vercel build | |
| - name: Deploy Project Artifacts to Vercel | |
| run: > | |
| vercel | |
| deploy | |
| --prebuilt | |
| --token=${{ secrets.VERCEL_TOKEN }} |