Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CHZarles authored Nov 19, 2024
1 parent 4d95a94 commit 0417667
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,5 @@ jobs:
- run: pip install mkdocs-blogging-plugin
- run: pip install mkdocs-git-revision-date-localized-plugin
- run: pip install mkdocs-glightbox  
- run: pip install mkdocs-pdf
- name: Install SSH Client #步骤3:关联ssh私钥
uses: webfactory/[email protected] #这里调用这个第三方的库,可以直接关联ssh私钥
with: #下面是参数
#这里需要通过github的环境参数中获取私钥,并传给这个库,(这是最安全的,git当然不能让用户直接输入私钥内容)
ssh-private-key: ${{ secrets.MKDOCS_SERVER }}   

- run: pip install mkdocs-pdf
- run: mkdocs gh-deploy --force

0 comments on commit 0417667

Please sign in to comment.