mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Merge pull request #397 from mchangrh/base-sqlite-ci
add generate-sqlite-base
This commit is contained in:
commit
0c16448065
1 changed files with 23 additions and 0 deletions
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
|
Loading…
Reference in a new issue