File tree Expand file tree Collapse file tree 2 files changed +38
-21
lines changed Expand file tree Collapse file tree 2 files changed +38
-21
lines changed Original file line number Diff line number Diff line change 49
49
ghpages :
50
50
runs-on : ubuntu-latest
51
51
steps :
52
- - uses : actions/checkout@v4
52
+ - name : Checkout Source Repo
53
+ uses : actions/checkout@v4
54
+ with :
55
+ path : md
56
+ - name : Checkout Target Repo
57
+ uses : actions/checkout@v4
58
+ with :
59
+ ssh-key : ${{ secrets.PAGES_DEPLOY_KEY }}
60
+ repository : Python-Markdown/Python-Markdown.github.io
61
+ path : target
53
62
- name : Setup Python
54
63
uses : actions/setup-python@v4
55
64
with :
@@ -60,15 +69,11 @@ jobs:
60
69
python -m pip install .[docs]
61
70
- name : Build
62
71
run : |
72
+ cd md
63
73
python -m mkdocs build --clean --verbose
64
74
- name : Publish
65
75
if : success()
66
- uses : cpina/github-action-push-to-another-repository@main
67
- env :
68
- SSH_DEPLOY_KEY : ${{ secrets.PAGES_DEPLOY_KEY }}
69
- with :
70
- source-directory : ' site'
71
- destination-github-username : ' Python-Markdown'
72
- destination-repository-name : ' Python-Markdown.github.io'
73
- user-name : ${{ github.actor }}
74
- target-branch : master
76
+ run : |
77
+ cd target
78
+ git config user.email [email protected]
79
+ python -m ghp-import --push --no-jekyll --branch=master ../md/site
Original file line number Diff line number Diff line change 1
1
name : manual deploy
2
2
3
3
on :
4
- workflow_dispatch
4
+ workflow_dispatch :
5
+ inputs :
6
+ ref :
7
+ description : ' The branch, tag or SHA to checkout and build.'
8
+ type : string
9
+ required : true
10
+ default : master
5
11
6
12
jobs :
7
13
8
14
ghpages :
9
15
runs-on : ubuntu-latest
10
16
steps :
11
- - uses : actions/checkout@v4
17
+ - name : Checkout Source Repo
18
+ uses : actions/checkout@v4
19
+ with :
20
+ ref : ${{ inputs.ref }}
21
+ path : md
22
+ - name : Checkout Target Repo
23
+ uses : actions/checkout@v4
24
+ with :
25
+ ssh-key : ${{ secrets.PAGES_DEPLOY_KEY }}
26
+ repository : Python-Markdown/Python-Markdown.github.io
27
+ path : target
12
28
- name : Setup Python
13
29
uses : actions/setup-python@v4
14
30
with :
@@ -19,15 +35,11 @@ jobs:
19
35
python -m pip install .[docs]
20
36
- name : Build
21
37
run : |
38
+ cd md
22
39
python -m mkdocs build --clean --verbose
23
40
- name : Publish
24
41
if : success()
25
- uses : cpina/github-action-push-to-another-repository@main
26
- env :
27
- SSH_DEPLOY_KEY : ${{ secrets.PAGES_DEPLOY_KEY }}
28
- with :
29
- source-directory : ' site'
30
- destination-github-username : ' Python-Markdown'
31
- destination-repository-name : ' Python-Markdown.github.io'
32
- user-name : ${{ github.actor }}
33
- target-branch : master
42
+ run : |
43
+ cd target
44
+ git config user.email [email protected]
45
+ python -m ghp-import --push --no-jekyll --branch=master ../md/site
You can’t perform that action at this time.
0 commit comments