Skip to content

Commit

Permalink
Test custom Docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
sys-001 committed Aug 24, 2021
1 parent 8ed1cc5 commit cad9c8d
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,19 @@ on:
workflow_dispatch:

jobs:
build:
pages:
name: Build files for GH Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Generate schemas
uses: addnab/docker-run-action@v3
uses: docker://ghcr.io/sysbot-org/tgscraper
with:
registry: ghcr.io
image: ghcr.io/sysbot-org/tgscraper:latest
options: -v ${{ github.workspace }}:/out
run: |
'php /app/vendor/bin/tgscraper app:export-schema --readable botapi.json'
'php /app/vendor/bin/tgscraper app:export-schema --yaml --readable botapi.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'
args: |
"app:export-schema --readable ${{ github.workspace }}/botapi.json"
"app:export-schema --yaml --readable ${{ github.workspace }}/botapi.yaml"
"app:export-schema --postman --readable ${{ github.workspace }}/botapi_postman.json"
"app:export-schema --openapi --readable ${{ github.workspace }}/botapi_openapi.json"
"app:export-schema --yaml --openapi --readable ${{ github.workspace }}/botapi_openapi.yaml"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit cad9c8d

Please sign in to comment.