Skip to content

Commit

Permalink
add firefox build to action
Browse files Browse the repository at this point in the history
  • Loading branch information
Herobread committed Jul 24, 2024
1 parent a9d47b6 commit 1ace619
Showing 1 changed file with 33 additions and 8 deletions.
41 changes: 33 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
workflow_dispatch:

jobs:
build:
name: Build
build-chrome:
name: Build Chrome extension
timeout-minutes: 15
runs-on: ubuntu-latest

Expand All @@ -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/

0 comments on commit 1ace619

Please sign in to comment.