refactor(e2e): isolate worker fixtures and auth state #88
Workflow file for this run
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: Vercel Preview Deployment | |
| on: [pull_request] | |
| jobs: | |
| Deploy-Preview: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Use Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.3.11" | |
| - name: Install | |
| run: bun install --frozen-lockfile | |
| - name: Declare some variables | |
| run: | | |
| echo "NEXT_PUBLIC_GIT_COMMIT=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" | |
| - name: Build | |
| run: bun run build | |
| # - name: Pull Vercel Environment Information | |
| # run: bun vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | |
| # | |
| # - name: Build Project Artifacts | |
| # run: bun vercel build --token=${{ secrets.VERCEL_TOKEN }} | |
| # | |
| # - name: Deploy Project Artifacts to Vercel | |
| # run: bun vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | |
| - name: Install Netlify | |
| run: bun add --dev netlify-cli@23.2.1 | |
| - name: Deploy to Netlify | |
| id: netlify_deploy | |
| run: | | |
| bun run netlify deploy \ | |
| --dir out \ | |
| --no-build \ | |
| --site ${{ secrets.NETLIFY_SITE_ID }} \ | |
| --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} |