Skip to content

Commit

Permalink
update action to support firefox build
Browse files Browse the repository at this point in the history
  • Loading branch information
Herobread committed Jul 23, 2024
1 parent 2dc5890 commit 8ad6631
Showing 1 changed file with 37 additions and 6 deletions.
43 changes: 37 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build and Zip Extension
name: Build and Zip Extensions

on:
workflow_dispatch:

jobs:
build:
name: Build
build-chromium:
name: Build Chromium Extension
timeout-minutes: 15
runs-on: ubuntu-latest

Expand All @@ -27,10 +27,41 @@ jobs:
run: bun run build

- name: Zip the build contents
run: cd dist && zip -r ../better-studres.zip ./*
run: zip -r better-studres-chromium.zip dist/*

- name: Upload extension artifacts
uses: actions/upload-artifact@v4
with:
name: better-studres
path: better-studres.zip
name: better-studres-chromium
path: better-studres-chromium.zip

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
run: bun run build:firefox

- name: Zip the build contents
run: zip -r better-studres-firefox.zip dist/*

- name: Upload extension artifacts
uses: actions/upload-artifact@v4
with:
name: better-studres-firefox
path: better-studres-firefox.zip

0 comments on commit 8ad6631

Please sign in to comment.