Skip to content

Commit

Permalink
Fix downloads on site + publish CLI uber jar (#8595)
Browse files Browse the repository at this point in the history
A bunch of download links are wrong on our web site, and the Nessie CLI uber jar wasn't published to the GH release page.
Also, basically all `curl -o` didn't work, because GH release artifact URLs are now redirected.
  • Loading branch information
snazy authored May 24, 2024
1 parent 808e09a commit 2bfb0c1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ jobs:
./gradlew publishToMavenLocal publishToSonatype closeAndReleaseSonatypeStagingRepository -Prelease -Puber-jar || \
./gradlew publishToMavenLocal publishToSonatype closeAndReleaseSonatypeStagingRepository -Prelease -Puber-jar
mv servers/quarkus-server/build/nessie-quarkus-${RELEASE_VERSION}-runner.jar "${ARTIFACTS}"
mv cli/cli/build/libs/nessie-cli-${RELEASE_VERSION}.jar "${ARTIFACTS}"
mv tools/server-admin/build/nessie-server-admin-tool-${RELEASE_VERSION}-runner.jar "${ARTIFACTS}"
mv gc/gc-tool/build/executable/nessie-gc.jar "${ARTIFACTS}"/nessie-gc-${RELEASE_VERSION}.jar
echo "::endgroup::"
Expand Down Expand Up @@ -158,6 +159,7 @@ jobs:
cp api/model/build/generated/openapi/META-INF/openapi/openapi.yaml api/model/build/nessie-openapi-${RELEASE_VERSION}.yaml
echo "QUARKUS_UBER_JAR=${ARTIFACTS}/nessie-quarkus-${RELEASE_VERSION}-runner.jar" >> ${GITHUB_ENV}
echo "CLI_UBER_JAR=${ARTIFACTS}/nessie-cli-${RELEASE_VERSION}.jar" >> ${GITHUB_ENV}
echo "GC_UBER_JAR=${ARTIFACTS}/nessie-gc-${RELEASE_VERSION}.jar" >> ${GITHUB_ENV}
echo "SERVER_ADMIN_UBER_JAR=${ARTIFACTS}/nessie-server-admin-tool-${RELEASE_VERSION}-runner.jar" >> ${GITHUB_ENV}
echo "NESSIE_OPENAPI=api/model/build/nessie-openapi-${RELEASE_VERSION}.yaml" >> ${GITHUB_ENV}
Expand Down Expand Up @@ -259,6 +261,7 @@ jobs:
--notes-file ${{ env.NOTES_FILE }} \
--title "Nessie ${RELEASE_VERSION}" \
"${QUARKUS_UBER_JAR}" \
"${CLI_UBER_JAR}" \
"${GC_UBER_JAR}" \
"${SERVER_ADMIN_UBER_JAR}" \
"${NESSIE_OPENAPI}" \
Expand Down
16 changes: 8 additions & 8 deletions site/docs/downloads/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Docker images are multiplatform images for amd64, arm64, ppc64le, s390x.
Requires Java 17 or newer.

```bash
curl -o nessie-quarkus-{{ versions.nessie }}-runner.jar \
curl -L -o nessie-quarkus-{{ versions.nessie }}-runner.jar \
https://github.com/projectnessie/nessie/releases/download/nessie-{{ versions.nessie }}/nessie-quarkus-{{ versions.nessie }}-runner.jar
java -jar nessie-quarkus-{{ versions.nessie }}-runner.jar
```
Expand All @@ -50,9 +50,9 @@ java -jar nessie-quarkus-{{ versions.nessie }}-runner.jar
Requires Java 11 or newer.

```bash
curl -o nessie-cli-{{ versions.nessie }}-runner.jar \
https://github.com/projectnessie/nessie/releases/download/nessie-{{ versions.nessie }}/nessie-cli-{{ versions.nessie }}-runner.jar
java -jar nessie-cli-{{ versions.nessie }}-runner.jar
curl -L -o nessie-cli-{{ versions.nessie }}.jar \
https://github.com/projectnessie/nessie/releases/download/nessie-{{ versions.nessie }}/nessie-cli-{{ versions.nessie }}.jar
java -jar nessie-cli-{{ versions.nessie }}.jar
```

## Nessie GC Tool as Docker image
Expand All @@ -77,17 +77,17 @@ Docker images are multiplatform images for amd64, arm64, ppc64le, s390x.
Requires Java 11, Java 17 recommended.

```bash
curl -o https://github.com/projectnessie/nessie/releases/download/nessie-{{ versions.nessie }}/nessie-gc-{{ versions.nessie }} \
https://github.com/projectnessie/nessie/releases/download/nessie-{{ versions.nessie }}/https://github.com/projectnessie/nessie/releases/download/nessie-{{ versions.nessie }}/nessie-gc-{{ versions.nessie }}
java -jar https://github.com/projectnessie/nessie/releases/download/nessie-{{ versions.nessie }}/nessie-gc-{{ versions.nessie }}
curl -L -o nessie-gc-{{ versions.nessie }}.jar \
https://github.com/projectnessie/nessie/releases/download/nessie-{{ versions.nessie }}/nessie-gc-{{ versions.nessie }}.jar
java -jar nessie-gc-{{ versions.nessie }}.jar
```

## Nessie Repository Management tool as a standalone uber jar

Requires Java 17 or newer.

```bash
curl -o nessie-server-admin-tool-{{ versions.nessie }}-runner.jar \
curl -L -o nessie-server-admin-tool-{{ versions.nessie }}-runner.jar \
https://github.com/projectnessie/nessie/releases/download/nessie-{{ versions.nessie }}/nessie-server-admin-tool-{{ versions.nessie }}-runner.jar
java -jar nessie-server-admin-tool-{{ versions.nessie }}-runner.jar
```
Expand Down
2 changes: 1 addition & 1 deletion site/docs/guides/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ From there, you can use one of the three main Nessie integrations of:
You can also install the [Nessie CLI/REPL](../nessie-latest/cli.md).

```bash
curl -o nessie-cli-{{ versions.nessie }}-runner.jar \
curl -L -o nessie-cli-{{ versions.nessie }}-runner.jar \
https://github.com/projectnessie/nessie/releases/download/nessie-{{ versions.nessie }}/nessie-cli-{{ versions.nessie }}-runner.jar
```
16 changes: 8 additions & 8 deletions site/in-dev/index-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Docker images are multiplatform images for amd64, arm64, ppc64le, s390x.
Requires Java 17 or newer.

```bash
curl -o nessie-quarkus-::NESSIE_VERSION::-runner.jar \
curl -L -o nessie-quarkus-::NESSIE_VERSION::-runner.jar \
https://github.com/projectnessie/nessie/releases/download/nessie-::NESSIE_VERSION::/nessie-quarkus-::NESSIE_VERSION::-runner.jar
java -jar nessie-quarkus-::NESSIE_VERSION::-runner.jar
```
Expand All @@ -52,9 +52,9 @@ java -jar nessie-quarkus-::NESSIE_VERSION::-runner.jar
Requires Java 11 or newer.

```bash
curl -o nessie-cli-::NESSIE_VERSION::-runner.jar \
https://github.com/projectnessie/nessie/releases/download/nessie-::NESSIE_VERSION::/nessie-cli-::NESSIE_VERSION::-runner.jar
java -jar nessie-cli-::NESSIE_VERSION::-runner.jar
curl -L -o nessie-cli-::NESSIE_VERSION::.jar \
https://github.com/projectnessie/nessie/releases/download/nessie-::NESSIE_VERSION::/nessie-cli-::NESSIE_VERSION::.jar
java -jar nessie-cli-::NESSIE_VERSION::.jar
```

## Nessie GC Tool as Docker image
Expand All @@ -79,17 +79,17 @@ Docker images are multiplatform images for amd64, arm64, ppc64le, s390x.
Requires Java 11, Java 17 recommended.

```bash
curl -o https://github.com/projectnessie/nessie/releases/download/nessie-::NESSIE_VERSION::/nessie-gc-::NESSIE_VERSION:: \
https://github.com/projectnessie/nessie/releases/download/nessie-::NESSIE_VERSION::/https://github.com/projectnessie/nessie/releases/download/nessie-::NESSIE_VERSION::/nessie-gc-::NESSIE_VERSION::
java -jar https://github.com/projectnessie/nessie/releases/download/nessie-::NESSIE_VERSION::/nessie-gc-::NESSIE_VERSION::
curl -L -o nessie-gc-::NESSIE_VERSION::.jar \
https://github.com/projectnessie/nessie/releases/download/nessie-::NESSIE_VERSION::/nessie-gc-::NESSIE_VERSION::.jar
java -jar nessie-gc-::NESSIE_VERSION::.jar
```

### Nessie Repository Management tool as a standalone uber jar

Requires Java 17 or newer.

```bash
curl -o nessie-server-admin-tool-::NESSIE_VERSION::-runner.jar \
curl -L -o nessie-server-admin-tool-::NESSIE_VERSION::-runner.jar \
https://github.com/projectnessie/nessie/releases/download/nessie-::NESSIE_VERSION::/nessie-server-admin-tool-::NESSIE_VERSION::-runner.jar
java -jar nessie-server-admin-tool-::NESSIE_VERSION::-runner.jar
```
Expand Down

0 comments on commit 2bfb0c1

Please sign in to comment.