diff options
author | Gereon Kremer <nafur42@gmail.com> | 2021-10-26 05:25:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 12:25:00 +0000 |
commit | 396dfa071d5ab40a1d2ab3ab84c5fdf41c3affd9 (patch) | |
tree | 764765735298d6516d9699cb8811bcd71cb8133e | |
parent | bda2c87c96bf69e37940bb5ad34222e639f139bb (diff) |
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.
-rw-r--r-- | .github/workflows/docs_upload.yml | 18 |
1 files changed, 18 insertions, 0 deletions
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 |