mirror of
https://github.com/Sysbot-org/tgscraper.git
synced 2025-02-17 04:46:48 +01:00
Test custom Docker action
This commit is contained in:
parent
8ed1cc54be
commit
cad9c8d165
21
.github/workflows/pages.yml
vendored
21
.github/workflows/pages.yml
vendored
@ -5,24 +5,19 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
pages:
|
||||||
name: Build files for GH Pages
|
name: Build files for GH Pages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Generate schemas
|
- name: Generate schemas
|
||||||
uses: addnab/docker-run-action@v3
|
uses: docker://ghcr.io/sysbot-org/tgscraper
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
args: |
|
||||||
image: ghcr.io/sysbot-org/tgscraper:latest
|
"app:export-schema --readable ${{ github.workspace }}/botapi.json"
|
||||||
options: -v ${{ github.workspace }}:/out
|
"app:export-schema --yaml --readable ${{ github.workspace }}/botapi.yaml"
|
||||||
run: |
|
"app:export-schema --postman --readable ${{ github.workspace }}/botapi_postman.json"
|
||||||
'php /app/vendor/bin/tgscraper app:export-schema --readable botapi.json'
|
"app:export-schema --openapi --readable ${{ github.workspace }}/botapi_openapi.json"
|
||||||
'php /app/vendor/bin/tgscraper app:export-schema --yaml --readable botapi.yaml'
|
"app:export-schema --yaml --openapi --readable ${{ github.workspace }}/botapi_openapi.yaml"
|
||||||
'php /app/vendor/bin/tgscraper app:export-schema --postman --readable botapi_postman.json'
|
|
||||||
'php /app/vendor/bin/tgscraper app:export-schema --openapi --readable botapi_openapi.json'
|
|
||||||
'php /app/vendor/bin/tgscraper app:export-schema --yaml --openapi --readable botapi_openapi.yaml'
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user