File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -14,32 +14,30 @@ jobs:
14
14
site :
15
15
runs-on : ubuntu-latest
16
16
steps :
17
- - uses : actions/setup-python@v1
17
+
18
+ - uses : actions/setup-python@v4
18
19
with :
19
20
python-version : ' 3.x'
20
- - uses : actions/checkout@v1
21
+
22
+ - uses : actions/checkout@v3
23
+
21
24
- run : python -m pip install recommonmark sphinx sphinx_rtd_theme
25
+
22
26
- run : |
23
27
mv README.md README.ign
24
28
make html
25
29
mv README.ign README.md
30
+
26
31
- name : ' publish site to gh-pages'
27
32
if : github.event_name != 'pull_request' && github.repository == 'buildthedocs/buildthedocs.github.io'
28
- env :
29
- GH_DEPKEY : ${{ secrets.GHA_DEPLOY_KEY }}
30
33
run : |
31
34
cd _build/html
35
+ git init
36
+ cp ../../.git/config ./.git/config
32
37
cp ../../README.md ./
33
38
touch .nojekyll
34
- git init
35
39
git add .
36
- git config --local user.email "push@gha "
37
- git config --local user.name "GHA "
40
+ git config --local user.email "BuildTheDocs@GitHubActions "
41
+ git config --local user.name "GitHub Actions "
38
42
git commit -a -m "update ${{ github.sha }}"
39
- git remote add origin "[email protected] :${{ github.repository }}"
40
- eval `ssh-agent -t 60 -s`
41
- echo "$GH_DEPKEY" | ssh-add -
42
- mkdir -p ~/.ssh/
43
- ssh-keyscan github.com >> ~/.ssh/known_hosts
44
- git push -u origin +HEAD:master
45
- ssh-agent -k
43
+ git push -u origin +HEAD:main
You can’t perform that action at this time.
0 commit comments