Skip to content

Auto update DB and Deploy #2902

Auto update DB and Deploy

Auto update DB and Deploy #2902

Workflow file for this run

name: Auto update DB and Deploy
on:
workflow_dispatch:
schedule:
- cron: '0 5,13,21 * * *'
jobs:
run:
name: Update games DB
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install dependencies
run: npm install
- name: Run the update
run: npm run extract
- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy -- -u "github-actions-bot <support+actions@github.com>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}