Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
build: update release files location
Merged fintohaps opened 7 months ago

The destination of the release files was moved, so this patch updates that location.

2 files changed +3 -3 d2e10fde 8afd55ff
modified build/release
@@ -12,6 +12,7 @@ SSH_KEY="$(rad path)/keys/radicle"

main() {
  version="$1"
+
  destination="/var/www/files.radicle.xyz/releases/$version"

  if [ -z "$version" ]; then
    echo "fatal: empty version number" >&2 ; exit 1
@@ -28,7 +29,7 @@ main() {
  case "$confirmation" in
    [Yy]*)
      echo "Creating 'latest' symlink.."
-
      ssh -i "$SSH_KEY" "$SSH_ADDRESS" ln -snf "/mnt/radicle/files/releases/$version" /mnt/radicle/files/releases/latest ;;
+
      ssh -i "$SSH_KEY" "$SSH_ADDRESS" ln -snf "$destination/$version" /mnt/radicle/files/releases/latest ;;
    *)
      echo "Operation aborted."
      exit 1 ;;
modified build/upload
@@ -17,7 +17,7 @@ main() {
    echo "fatal: empty version number" >&2 ; exit 1
  fi

-
  destination="/mnt/radicle/files/releases/$version"
+
  destination="/var/www/files.radicle.xyz/releases/$version"

  # Create remote folder.
  ssh -i "$SSH_KEY" "$SSH_ADDRESS" mkdir -p "$destination"
@@ -52,7 +52,6 @@ main() {
    fi
  done < build/TARGETS

-
  # TODO(cloudhead): Don't pass `--tags` when we have canonical refs.
  # Pushes tags without assuming the remote the user is using. It does this by
  # using the pushurl directly, i.e.
  # `rad://z3gqcJUoA1n9HaHKufZs5FCSGazv5/<nid>`, where `<nid>` is the local Node