2021-08-23 13:12:50 +02:00
|
|
|
name: GH Pages
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2021-08-24 13:32:05 +02:00
|
|
|
pages:
|
2021-08-23 13:12:50 +02:00
|
|
|
name: Build files for GH Pages
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Generate schemas
|
2021-08-24 13:32:05 +02:00
|
|
|
uses: docker://ghcr.io/sysbot-org/tgscraper
|
2021-08-23 13:12:50 +02:00
|
|
|
with:
|
2021-08-24 15:42:34 +02:00
|
|
|
args: "app:export-schema --readable $HOME/botapi.json"
|
2021-08-23 13:12:50 +02:00
|
|
|
- name: Deploy
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2021-08-24 15:42:34 +02:00
|
|
|
publish_dir: $HOME
|
2021-08-23 13:12:50 +02:00
|
|
|
destination_dir: schemas
|
|
|
|
publish_branch: gh-pages
|
|
|
|
cname: tgscraper.sys001.ml
|
|
|
|
enable_jekyll: true
|