Skip to content

Build and Zip Extension #35

Build and Zip Extension

Build and Zip Extension #35

Workflow file for this run

name: Build and Zip Extensions
on:
workflow_dispatch:
jobs:
build-chromium:
name: Build Chromium 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
- name: Prepare archive
run: |
mkdir -p build-chromium
cp -r dist/* build-chromium/
zip -r better-studres-chromium.zip build-chromium
- name: Upload extension artifacts
uses: actions/upload-artifact@v4
with:
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: Prepare archive
run: |
mkdir -p build-firefox
cp -r dist/* build-firefox/
zip -r better-studres-firefox.zip build-firefox
- name: Upload extension artifacts
uses: actions/upload-artifact@v4
with:
name: better-studres-firefox
path: better-studres-firefox.zip