Skip to content

Commit

Permalink
chore: Add GitHub Actions workflow for building WXT Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
hinaloe committed Aug 17, 2024
1 parent e779f16 commit 8ec4f45
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-extension.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build WXT Extension

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
build:
runs-on: ubuntu-24.04

steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build extension
run: pnpm run zip

- name: Build extension for firefox
run: pnpm run zip:firefox

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: extension
path: .output/*.zip

0 comments on commit 8ec4f45

Please sign in to comment.