This PR fixes multiple issues with uploading docs for releases: the regular upload moved the generated docs, so the release upload would not find the docs; the check whether we have a release was incorrect; we probably want $NAME instead of docs-$NAME here.
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
if [ -n "$NAME" ]; then
- mv docs-new target/docs-$NAME-$HASH
+ cp -r docs-new target/docs-$NAME-$HASH
cd target/
isdiff=$(diff -r -x "*.zip" docs-master/ docs-$NAME-$HASH >&2; echo $?; exit 0)
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
- if [ "$ISTAG" ]; then
+ if [ "$ISTAG" = true ]; then
git clone git@github.com:cvc5/docs-releases.git target-releases/
- mv docs-new target-releases/$NAME
+ cp -r docs-new target-releases/$NAME
cd target-releases/
- git add docs-$NAME
+ git add $NAME
git commit -m "Update docs for $NAME"
git push