diff options
author | Jeremy Plsek <[email protected]> | 2019-12-29 19:24:05 -0500 |
---|---|---|
committer | Jeremy Plsek <[email protected]> | 2019-12-29 19:35:02 -0500 |
commit | 8d0b032eb61d44c63b1a60b967399340bb915023 (patch) | |
tree | 9c13bcef4168707a37d8fad7a3bef8fb080a86c5 /.github | |
parent | 9cb4fd6f79fe8fa6cbecd2c985c8e0906e001b55 (diff) | |
download | SponsorBlock-8d0b032eb61d44c63b1a60b967399340bb915023.tar.gz SponsorBlock-8d0b032eb61d44c63b1a60b967399340bb915023.zip |
Add web-ext and ci artifact generation
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 38 |
1 files changed, 38 insertions, 0 deletions
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 + |