1818 python-version : ["3", "3.9", "3.10", "3.11", "3.12"]
1919
2020 steps :
21- - uses : actions/checkout@master
21+ - name : Checkout
22+ uses : actions/checkout@master
2223 - name : Set up Python ${{ matrix.python-version }}
2324 uses : actions/setup-python@master
2425 with :
@@ -30,10 +31,13 @@ jobs:
3031 - name : Tests
3132 run : ./__tests__/test-ci.sh
3233
33- docs :
34+ build- docs :
3435 runs-on : ubuntu-latest
3536 steps :
36- - uses : actions/checkout@master
37+ - name : Checkout
38+ uses : actions/checkout@master
39+ - name : Setup Pages
40+ uses : actions/configure-pages@v5
3741 - name : Set up Python ${{ matrix.python-version }}
3842 uses : actions/setup-python@master
3943 with :
@@ -50,15 +54,25 @@ jobs:
5054 run : |
5155 mkdocs build --theme material \
5256 --site-dir ../site/monorepo-example/
57+ - name : Upload artifact
58+ uses : actions/upload-pages-artifact@v3
59+ with :
60+ path : ./site
61+
62+ publish-docs :
63+ environment :
64+ name : github-pages
65+ url : ${{ steps.deployment.outputs.page_url }}
66+ runs-on : ubuntu-latest
67+ needs : build-docs
68+ steps :
5369 - name : Deploy to GitHub Pages
54- uses : peaceiris/actions-gh-pages@8fd3a55a6f17e453f71eb37964ff360eee24daa7
55- env :
56- ACTIONS_DEPLOY_KEY : ${{ secrets.ACTIONS_DEPLOY_KEY }}
57- PUBLISH_BRANCH : gh-pages
58- PUBLISH_DIR : ./site
70+ id : deployment
71+ uses : actions/deploy-pages@v4
5972
60- publish :
73+ publish-pypi :
6174 runs-on : ubuntu-latest
75+ needs : test
6276 steps :
6377 - uses : actions/checkout@master
6478 - name : Set up Python ${{ matrix.python-version }}
0 commit comments