Added chrome to publish action (#10738) #832
Workflow file for this run
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 extension | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Move to manifest v3 | |
run: | | |
cp src/manifest_v3.json src/manifest.json | |
- name: Clear hotreload | |
run: | | |
echo "" > src/data/hotreload.js | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ISDCAC-chrome | |
path: ./src/* | |
- name: Move to manifest v2 | |
run: | | |
rm src/manifest.json | |
cp src/manifest_v2.json src/manifest.json | |
- name: "web-ext build" | |
id: web-ext-build | |
uses: kewisch/action-web-ext@v1 | |
with: | |
cmd: build | |
source: src | |
filename: "ISDCAC.xpi" | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ISDCAC-firefox-source | |
path: ./src/* | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ISDCAC-firefox-unsigned | |
path: ${{ steps.web-ext-build.outputs.target }} |