mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Merge pull request #397 from mchangrh/base-sqlite-ci
add generate-sqlite-base
This commit is contained in:
23
.github/workflows/generate-sqlite-base.yml
vendored
Normal file
23
.github/workflows/generate-sqlite-base.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: create-sqlite-base
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- databases/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
make-base-db:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
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
|
||||||
Reference in New Issue
Block a user