Skip to content

Commit 9565fd0

Browse files
authored
Update deploy.yml
1 parent 1e07dc3 commit 9565fd0

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

.github/workflows/deploy.yml

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,35 @@ on:
55
workflow_dispatch:
66

77
jobs:
8-
deploy:
8+
build:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Checkout repository
13-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
14-
15-
- name: Setup Python
16-
uses: actions/setup-python@2e3e4b15a884dc73a63f962bff250a855150a234
12+
- name: Checkout code
13+
uses: actions/checkout@v4
1714
with:
18-
python-version: '3.13'
19-
cache: 'pip'
20-
pip-install: -r requirements.txt
21-
22-
- name: Build documentation
23-
run: mkdocs build
24-
25-
- name: Deploy to GitHub Pages
26-
uses: peaceiris/actions-gh-pages@4b09552702d0b65573696410d4707c765da2630b
15+
fetch-depth: 0
16+
- uses: actions/setup-python@v5
2717
with:
28-
personal_token: ${{ secrets.DOCS_DEPLOY_TOKEN }}
29-
external_repository: pylonmc/pylonmc.github.io
30-
publish_branch: master
31-
publish_dir: ./site
32-
user_name: 'github-actions[bot]'
33-
user_email: 'github-actions[bot]@users.noreply.github.com'
34-
commit_message: 'Deploy ${{ github.sha }}'
18+
python-version: 3.9
19+
- run: pip install \
20+
mkdocs-material
21+
- run: mkdocs gh-deploy --config-file mkdocs.yml --force
22+
23+
deploy:
24+
needs: build
25+
26+
runs-on: ubuntu-latest
27+
28+
permissions:
29+
pages: write
30+
id-token: write
31+
32+
environment:
33+
name: github-pages
34+
url: ${{ steps.deployment.outputs.page_url }}
35+
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)