tgscraper/.github/workflows/pages.yml

40 lines
1.4 KiB
YAML
Raw Normal View History

name: GH Pages
on:
2021-12-11 01:47:04 +01:00
repository_dispatch:
types: [on_update]
workflow_dispatch:
jobs:
2021-08-24 13:32:05 +02:00
pages:
name: Build files for GH Pages
runs-on: ubuntu-latest
steps:
2021-08-24 16:07:49 +02:00
- name: Generate botapi.json
2021-08-24 13:32:05 +02:00
uses: docker://ghcr.io/sysbot-org/tgscraper
with:
2021-08-24 16:02:41 +02:00
args: "app:export-schema --readable /github/workspace/botapi.json"
2021-08-24 16:07:49 +02:00
- 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 }}
2021-08-24 16:00:02 +02:00
publish_dir: .
destination_dir: schemas
publish_branch: gh-pages
cname: tgscraper.sys001.ml
enable_jekyll: true