From 8d0b032eb61d44c63b1a60b967399340bb915023 Mon Sep 17 00:00:00 2001 From: Jeremy Plsek Date: Sun, 29 Dec 2019 19:24:05 -0500 Subject: Add web-ext and ci artifact generation --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..8f8758a2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: [push, pull_request] + +jobs: + + build: + name: Create artifacts + runs-on: ubuntu-latest + + steps: + # Initialization + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + - run: npm install + - name: Copy configuration + run: cp config.js.example config.js + + # Create Chrome artifacts + - name: Create Chrome artifacts + run: npm run build + - uses: actions/upload-artifact@v1 + with: + name: Chrome Extension + path: web-ext-artifacts + + # Create Firefox artifacts + - name: Move manifest + run: mv manifest.json manifest.json.original + - name: Combine manifest for Firefox + run: jq -s '.[0] * .[1]' manifest.json.original firefox_manifest-extra.json > manifest.json + - name: Create Firefox artifacts + run: npm run build + - uses: actions/upload-artifact@v1 + with: + name: Firefox Extension + path: web-ext-artifacts + -- cgit v1.2.3