mirror of
https://github.com/Sysbot-org/tgscraper.git
synced 2024-06-02 19:36:39 +02:00
26 lines
657 B
YAML
26 lines
657 B
YAML
name: GH Pages
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
pages:
|
|
name: Build files for GH Pages
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Generate schemas
|
|
uses: docker://ghcr.io/sysbot-org/tgscraper
|
|
with:
|
|
args: "app:export-schema --readable $HOME/botapi.json"
|
|
run: |
|
|
ls $HOME
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: $HOME
|
|
destination_dir: schemas
|
|
publish_branch: gh-pages
|
|
cname: tgscraper.sys001.ml
|
|
enable_jekyll: true |