Merge pull request #23 from pylonmc/docs/contributing #16
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: Deploy | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - name: Setup Python | |
| uses: actions/setup-python@2e3e4b15a884dc73a63f962bff250a855150a234 | |
| with: | |
| python-version: '3.13' | |
| cache: 'pip' | |
| pip-install: -r requirements.txt | |
| - name: Build documentation | |
| run: mkdocs build | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e | |
| with: | |
| personal_token: ${{ secrets.DOCS_DEPLOY_TOKEN }} | |
| external_repository: pylonmc/pylonmc.github.io | |
| publish_branch: master | |
| publish_dir: ./site | |
| user_name: 'github-actions[bot]' | |
| user_email: 'github-actions[bot]@users.noreply.github.com' | |
| commit_message: 'Deploy ${{ github.sha }}' |