chore: update schemas #117
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: docker compose up -d | |
| - uses: actions/setup-python@v5 | |
| with: | |
| cache: pip | |
| python-version: "3.10" | |
| - run: pip install -r requirements.txt | |
| - name: wait mysql ready | |
| run: bash ./wait_mysql_ready.sh | |
| - run: python test-each-file.py | |
| - run: python test.py | |
| - run: cp -r src dist | |
| - run: | | |
| mysqldump \ | |
| -h 127.0.0.1 -u root -psecret \ | |
| --databases bangumi \ | |
| --skip-dump-date \ | |
| --order-by-primary \ | |
| --no-create-db \ | |
| --hex-blob \ | |
| --extended-insert=FALSE | sed '/USE `bangumi`;/d' > ./dist/dist.sql | |
| - run: docker compose logs | |
| if: "${{ failure() }}" | |
| - run: cp ./wait_mysql_ready.sh dist | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| if: github.event_name == 'push' | |
| with: | |
| publish_dir: ./dist/ | |
| commit_message: deploy ${{ github.ref }} | |
| github_token: ${{ secrets.GITHUB_TOKEN }} |