File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 9
9
default : " master"
10
10
11
11
permissions :
12
- contents : read
13
- pages : write
14
- id-token : write
12
+ contents : write
15
13
16
14
jobs :
17
15
build :
18
16
runs-on : ubuntu-latest
19
17
steps :
20
18
- uses : actions/checkout@v4
19
+ - name : " Fetch gh-pages branch"
20
+ run : git fetch origin gh-pages --depth=1
21
21
- name : " Set permissions"
22
22
run : chmod -R a+rwX $(pwd)
23
23
- name : " Build site"
26
26
quay.io/openssl-ci/docs:20240711-115832 sh -c "\
27
27
git config --global --add safe.directory /mnt && \
28
28
python build.py ${{ github.event.inputs.branch }}"
29
- - name : " Change branch"
30
- run : git switch gh-pages
31
- - name : " Setup GitHub Pages"
32
- uses : actions/configure-pages@v5
33
- - name : " Upload artifact"
34
- uses : actions/upload-pages-artifact@v3
35
- with :
36
- path : " ."
37
- - name : " Deploy to GitHub Pages"
38
- uses : actions/deploy-pages@v4
29
+ - name : " Push branch"
30
+ run : |
31
+ git config user.name openssl-machine
32
+ git config user.email [email protected]
33
+ git pull --rebase origin gh-pages
34
+ git push origin gh-pages
You can’t perform that action at this time.
0 commit comments