File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,28 @@ jobs:
20
20
with :
21
21
python-version : ' 3.12'
22
22
23
+ - name : Set up repository URL with token
24
+ run : |
25
+ git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/NFUChen/pyspring-docs.git
26
+
27
+
23
28
- name : Install dependencies
24
29
run : |
25
30
python -m pip install --upgrade pip
26
31
pip install mkdocs mkdocs-material
27
32
mkdocs build
28
33
34
+ - name : Configuration environment
35
+ run : |
36
+ mkdir -p ~/.ssh/
37
+ echo "$HEXO_DEPLOY_PRI" | tr -d '\r' > ~/.ssh/id_rsa
38
+ chmod 600 ~/.ssh/id_rsa
39
+ ssh-keyscan github.com >> ~/.ssh/known_hosts
40
+ git config --global user.name "xxx"
41
+ git config --global user.email "xxx"
42
+
29
43
- name : Deploy to GitHub Pages
30
44
uses : peaceiris/actions-gh-pages@v4
31
45
with :
32
- personal_token : ${{ secrets.GH_PAT }}
46
+ deploy_key : ${{ secrets.ACTIONS_DEPLOY_KEY }}
33
47
publish_dir : ./site # Path to the output directory
You can’t perform that action at this time.
0 commit comments