File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 schedule :
88 - cron : ' 0 */8 * * *'
99jobs :
10- deploy-pages :
10+ build :
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Install poetry
@@ -58,19 +58,23 @@ jobs:
5858 path : |
5959 *_mkdocs_build.log
6060 *_mkdocs_debug.zip
61- - name : Commit static site to repository with GitHub Pages enabled
62- uses : cpina/github-action-push-to-another-repository@main
63- env :
64- API_TOKEN_GITHUB : ${{ secrets.DEPLOY_PAGES_TOKEN }}
61+ - name : Upload static files as artifact
62+ id : deployment
63+ uses : actions/upload-pages-artifact@v3
6564 with :
66- user-name : ${{ secrets.USER_NAME }}
67- user-email : ${{ secrets.USER_EMAIL }}
68- source-directory : docs
69- destination-github-username : ${{ secrets.USER_NAME }}
70- destination-repository-name : mkdocs-publisher.github.io
71- target-branch : docs
65+ path : docs/
7266 - name : Save MkDocs files cache
7367 uses : actions/cache/save@v3
7468 with :
7569 path : .pub_min_cache
7670 key : mkdocs-publisher-cache-${{ github.run_id }}
71+ deploy :
72+ environment :
73+ name : github-pages
74+ url : ${{ steps.deployment.outputs.page_url }}
75+ runs-on : ubuntu-latest
76+ needs : build
77+ steps :
78+ - name : Deploy to GitHub Pages
79+ id : deployment
80+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments