Skip to content

Commit

Permalink
feat: add build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
HunnySajid committed Sep 22, 2024
1 parent b20e1ab commit d9231e8
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Browser Extension

on:
pull_request: {}
push:
branches:
- main
tags:
- v*
jobs:
publish:
name: Build Extension
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: npm ci --ignore-scripts

- name: Build Chrome extension
run: npm run build

- name: Build Firefox extension
run: npm run build:firefox

- name: Upload build asset
uses: actions/upload-artifact@v3
with:
name: extension-builds-${{ github.event.number || github.event.head_commit.id }}
path: dist/*.zip

0 comments on commit d9231e8

Please sign in to comment.