File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1010 - ' docs/**/**'
1111 - ' mkdocs.yml'
1212
13- permissions :
14- contents : write
15-
1613jobs :
1714 build-and-deploy :
1815 if : |
1916 github.event_name == 'workflow_dispatch' ||
2017 (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
2118 runs-on : ubuntu-latest
19+ permissions :
20+ contents : write
2221
2322 steps :
2423 - name : Checkout repository
25- uses : actions/checkout@v3
24+ uses : actions/checkout@v4
2625
2726 - name : Set up Python
28- uses : actions/setup-python@v2
27+ uses : actions/setup-python@v5
2928 with :
3029 python-version : 3.x
3130
3635 run : mkdocs build
3736
3837 - name : Deploy to GitHub Pages
38+ env :
39+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3940 run : |
41+ git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}
4042 mkdocs gh-deploy --force
4143 git push origin gh-pages
42- env :
43- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments