-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (29 loc) · 1008 Bytes
/
deploy.yml
File metadata and controls
34 lines (29 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 }}'