SponsorBlock/.github/workflows/ci.yml

35 lines
748 B
YAML
Raw Normal View History

2019-12-30 01:24:05 +01:00
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
2020-02-04 05:13:40 +01:00
run: cp config.json.example config.json
2019-12-30 01:24:05 +01:00
# Create Chrome artifacts
- name: Create Chrome artifacts
2020-02-04 07:32:58 +01:00
run: npm run build:chrome
2019-12-30 01:24:05 +01:00
- uses: actions/upload-artifact@v1
with:
2020-02-12 03:04:41 +01:00
name: ChromeExtension
2020-02-04 05:11:01 +01:00
path: dist
2019-12-30 01:24:05 +01:00
# Create Firefox artifacts
2020-02-04 07:32:58 +01:00
- name: Create Firefox artifacts
run: npm run build:firefox
2019-12-30 01:24:05 +01:00
- uses: actions/upload-artifact@v1
with:
2020-02-12 03:04:41 +01:00
name: FirefoxExtension
2020-02-04 05:11:01 +01:00
path: dist
2019-12-30 01:24:05 +01:00