mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 20:20:30 +00:00
ab6b861cd6
Let's see how this goes. - Update references to the new repo - Use rrsync on the server, meaning make-doc.sh uploads relative to the website root. - Bump Gradle wrapper to 7.2. Not related to this change, but possibly fixes running under Java 16. Possibly.
20 lines
557 B
Bash
Executable File
20 lines
557 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
DEST="${GITHUB_REF#refs/*/}"
|
|
echo "Uploading docs to https://tweaked.cc/$DEST"
|
|
|
|
# Setup ssh key
|
|
mkdir -p "$HOME/.ssh/"
|
|
echo "$SSH_KEY" > "$HOME/.ssh/key"
|
|
chmod 600 "$HOME/.ssh/key"
|
|
|
|
# And upload
|
|
rsync -avc -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no -p $SSH_PORT" \
|
|
"$GITHUB_WORKSPACE/build/docs/lua/" \
|
|
"$SSH_USER@$SSH_HOST:/$DEST"
|
|
rsync -avc -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no -p $SSH_PORT" \
|
|
"$GITHUB_WORKSPACE/build/docs/javadoc/" \
|
|
"$SSH_USER@$SSH_HOST:/$DEST/javadoc"
|