From 396dfa071d5ab40a1d2ab3ab84c5fdf41c3affd9 Mon Sep 17 00:00:00 2001 From: Gereon Kremer Date: Tue, 26 Oct 2021 05:25:00 -0700 Subject: [PATCH] Upload docs for tags to docs-releases (#7415) This automatically uploads the generated docs to a new repository docs-releases (which should eventually become docs). In contrast to docs-ci, we only store docs for releases there. --- .github/workflows/docs_upload.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/docs_upload.yml b/.github/workflows/docs_upload.yml index 7bdd186a1..9aadd6647 100644 --- a/.github/workflows/docs_upload.yml +++ b/.github/workflows/docs_upload.yml @@ -100,3 +100,21 @@ jobs: else echo "Ignored run" fi + + - name: Update docs for release + continue-on-error: true + env: + SSH_AUTH_SOCK: /tmp/ssh_agent.sock + run: | + if [ "$ISTAG" ]; then + git clone git@github.com:cvc5/docs-releases.git target-releases/ + mv docs-new target-releases/$NAME + cd target-releases/ + + git add docs-$NAME + + git commit -m "Update docs for $NAME" + git push + else + echo "Ignored run" + fi -- 2.30.2