mkdocs #666
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: mkdocs-for-gems | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| schedule: | |
| - cron: '0 16 * * *' | |
| jobs: | |
| build-doc: | |
| runs-on: docs | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build Documentation | |
| shell: bash | |
| run: | | |
| echo "Building docs (Markdown -> HTML)" | |
| mkdocs build | |
| echo "The website will update next day!" | |
| echo "http://120.92.44.177/gems_docs/" | |
| - name: Deploy to Website | |
| if: github.event_name == 'schedule' | |
| shell: bash | |
| run: | | |
| echo “Deploy to Website” | |
| mkdocs build --config-file mkdocs.yml --site-dir /html/gems_docs |