tgscraper/.github/workflows/pages.yml

40 lines
1.4 KiB
YAML

name: GH Pages
on:
repository_dispatch:
types: [on_update]
workflow_dispatch:
jobs:
pages:
name: Build files for GH Pages
runs-on: ubuntu-latest
steps:
- name: Generate botapi.json
uses: docker://ghcr.io/sysbot-org/tgscraper
with:
args: "app:export-schema --readable /github/workspace/botapi.json"
- name: Generate botapi.yaml
uses: docker://ghcr.io/sysbot-org/tgscraper
with:
args: "app:export-schema --yaml --readable /github/workspace/botapi.yaml"
- name: Generate botapi_postman.json
uses: docker://ghcr.io/sysbot-org/tgscraper
with:
args: "app:export-schema --postman --readable /github/workspace/botapi_postman.json"
- name: Generate botapi_openapi.json
uses: docker://ghcr.io/sysbot-org/tgscraper
with:
args: "app:export-schema --openapi --readable /github/workspace/botapi_openapi.json"
- name: Generate botapi_openapi.yaml
uses: docker://ghcr.io/sysbot-org/tgscraper
with:
args: "app:export-schema --yaml --openapi --readable /github/workspace/botapi_openapi.yaml"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
destination_dir: schemas
publish_branch: gh-pages
cname: tgscraper.sys001.ml
enable_jekyll: true