Organize Buttons and Export Import All #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Chrome Extension | |
#Tsemach | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '23' | |
- name: Install dependencies | |
run: | | |
if [ -f package.json ]; then | |
npm ci | |
fi | |
- name: Create extension directory | |
run: | | |
mkdir extension | |
cp src/manifest.json extension/ | |
cp src/background.js extension/ | |
cp src/popup.html extension/ | |
cp src/popup.js extension/ | |
cp src/styles.css extension/ | |
mkdir extension/icons | |
cp src/icons/icon*.png extension/icons | |
cp src/icons/icon*.svg extension/icons | |
- name: Zip extension | |
run: zip -r mockitextension.zip extension | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: mockitextension | |
path: mockitextension.zip | |