SponsorBlockServer/.github/workflows/generate-sqlite-base.yml

28 lines
597 B
YAML
Raw Normal View History

2021-10-27 21:55:11 +02:00
name: create-sqlite-base
2021-10-27 21:55:11 +02:00
on:
push:
branches:
- master
2021-10-27 21:55:11 +02:00
paths:
- databases/**
jobs:
make-base-db:
name: Generate SQLite base .db
2021-10-27 21:55:11 +02:00
runs-on: ubuntu-latest
2021-10-27 21:55:11 +02:00
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm install
- name: Set config
run: |
echo '{"mode": "init-db-and-exit"}' > config.json
- name: Run Server
timeout-minutes: 10
run: npm start
- uses: actions/upload-artifact@v2
with:
name: SponsorTimesDB.db
path: databases/sponsorTimes.db