removed recommended_lists #68
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: swagger2html + rst2pdf | |
| on: | |
| push: | |
| branches: | |
| - pages | |
| jobs: | |
| conversion: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v2 | |
| - name: Installations | |
| run: | | |
| npm install -g redoc-cli | |
| pip3 install rst2pdf | |
| - name: Run tasks | |
| run: | | |
| redoc-cli bundle ./src/main.yml --output index.html | |
| rst2pdf terms_of_use.rst terms_of_use.pdf | |
| - name: setup git config | |
| run: | | |
| # setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default | |
| git config user.name "GitHub Actions Bot" | |
| git config user.email "<>" | |
| - name: commit | |
| run: | | |
| # Stage the file, commit and push | |
| git add index.html | |
| git commit -m "Updated Swagger documentation" | |
| git add terms_of_use.pdf | |
| git commit -m "Updated Terms of Services" | |
| git push origin pages --force |