From 1ace619281ef3798b63430ee55dda4630383fe97 Mon Sep 17 00:00:00 2001 From: Oleksii Nazarenko Date: Wed, 24 Jul 2024 19:18:29 +0100 Subject: [PATCH] add firefox build to action --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61f69fe..172b2ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,8 @@ on: workflow_dispatch: jobs: - build: - name: Build + build-chrome: + name: Build Chrome extension timeout-minutes: 15 runs-on: ubuntu-latest @@ -23,14 +23,39 @@ jobs: - name: Install dependencies run: bun install - - name: Build + - name: Build Chrome run: bun run build - - name: Zip the build contents - run: cd dist && zip -r ../better-studres.zip ./* + - name: Upload Chrome extension artifacts + uses: actions/upload-artifact@v4 + with: + name: better-studres-chrome + path: dist/ + + build-firefox: + name: Build Firefox extension + timeout-minutes: 15 + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 2 + + - name: Setup Bun environment + uses: oven-sh/setup-bun@v1 + with: + bun-version: 0.7.0 + + - name: Install dependencies + run: bun install + + - name: Build Firefox + run: bun run build:firefox - - name: Upload extension artifacts + - name: Upload Firefox extension artifacts uses: actions/upload-artifact@v4 with: - name: better-studres - path: better-studres.zip + name: better-studres-firefox + path: dist/