mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
3dd9024cc7
- appropriate job names - only trigger on pushes to master branch & PRs - conform to formatting
28 lines
No EOL
597 B
YAML
28 lines
No EOL
597 B
YAML
name: create-sqlite-base
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- databases/**
|
|
|
|
jobs:
|
|
make-base-db:
|
|
name: Generate SQLite 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 |