mirror of
https://github.com/planetrenox/inzerosight.git
synced 2026-03-17 03:01:02 +00:00
32 lines
824 B
YAML
32 lines
824 B
YAML
name: Build Extensions
|
|
on:
|
|
workflow_dispatch:
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: latest
|
|
|
|
- run: bun install
|
|
|
|
- run: bun run build
|
|
|
|
- name: Zip extensions
|
|
run: |
|
|
cd dist/chrome && zip -r ../inzerosight-chrome.zip . && cd ../..
|
|
cd dist/firefox && zip -r ../inzerosight-firefox.zip . && cd ../..
|
|
|
|
- name: Commit and push dist
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
git add dist/ -f
|
|
git diff --cached --quiet || git commit -m "build: firefox + chrome extensions"
|
|
git push
|