Skip to content

Commit 46e9239

Browse files
committed
push from actions
1 parent 9176bb8 commit 46e9239

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/deploy-site.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
required: true
99
default: "master"
1010

11+
permissions:
12+
contents: write
13+
1114
jobs:
1215
build:
1316
runs-on: ubuntu-latest
@@ -21,5 +24,10 @@ jobs:
2124
run: |
2225
podman run -it -v $(pwd):/mnt -w /mnt --userns=keep-id \
2326
quay.io/openssl-ci/docs:20240706-200401 sh -c "\
24-
git config --global --add safe.directory /mnt && \
25-
python build.py ${{ github.event.inputs.branch }}"
27+
git config --global --add safe.directory /mnt && \
28+
python build.py ${{ github.event.inputs.branch }}"
29+
- name: "Push branch"
30+
run: |
31+
git config user.name github-actions
32+
git config user.email [email protected]
33+
git push origin gh-pages

build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def copy_images(tmp_dir: str):
6767

6868

6969
def build_site(version: str):
70-
return subprocess.run(["mike", "deploy", "--push", version]).returncode
70+
return subprocess.run(["mike", "deploy", version]).returncode
7171

7272

7373
def main():

0 commit comments

Comments
 (0)