Bump next from 16.2.2 to 16.2.6 in /admin #219
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: Build Extension | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Build Chrome extension | |
| run: bun run build | |
| env: | |
| VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }} | |
| VITE_SUPABASE_PUBLISHABLE_KEY: ${{ secrets.VITE_SUPABASE_PUBLISHABLE_KEY }} | |
| VITE_POSTHOG_KEY: ${{ secrets.VITE_POSTHOG_KEY }} | |
| VITE_POSTHOG_HOST: ${{ secrets.VITE_POSTHOG_HOST }} | |
| - name: Build Firefox extension | |
| run: bun run build:firefox | |
| env: | |
| VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }} | |
| VITE_SUPABASE_PUBLISHABLE_KEY: ${{ secrets.VITE_SUPABASE_PUBLISHABLE_KEY }} | |
| VITE_POSTHOG_KEY: ${{ secrets.VITE_POSTHOG_KEY }} | |
| VITE_POSTHOG_HOST: ${{ secrets.VITE_POSTHOG_HOST }} | |
| - name: Zip Chrome extension | |
| run: cd .output && zip -r chrome-extension.zip chrome-mv3 | |
| - name: Zip Firefox extension | |
| run: cd .output && zip -r firefox-extension.zip firefox-mv2 | |
| - name: Upload Chrome extension | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: chrome-extension | |
| path: .output/chrome-mv3 | |
| - name: Upload Firefox extension | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: firefox-extension | |
| path: .output/firefox-mv2 | |
| - name: Create Release | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: build-${{ github.sha }} | |
| name: Build ${{ github.sha }} | |
| body: | | |
| Automated build from commit ${{ github.sha }} | |
| **Commit:** ${{ github.event.head_commit.message }} | |
| files: | | |
| .output/chrome-extension.zip | |
| .output/firefox-extension.zip | |
| prerelease: true |