From 6adfb84c0fe7de9f1f26d13baa8df39f8431553b Mon Sep 17 00:00:00 2001 From: Michael C Date: Wed, 27 Oct 2021 15:55:11 -0400 Subject: [PATCH] add generate-sqlite-base --- .github/workflows/generate-sqlite-base.yml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/generate-sqlite-base.yml diff --git a/.github/workflows/generate-sqlite-base.yml b/.github/workflows/generate-sqlite-base.yml new file mode 100644 index 0000000..9f1a68e --- /dev/null +++ b/.github/workflows/generate-sqlite-base.yml @@ -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 \ No newline at end of file