Skip to content

Commit 4719e8b

Browse files
committed
adjust install script
1 parent 1f75bd2 commit 4719e8b

2 files changed

Lines changed: 8 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,18 @@ jobs:
3434
with:
3535
node-version: "18"
3636

37-
- run: scripts/setup-signing-key.sh
38-
env:
39-
DECRYPTER: ${{ secrets.DECRYPTER }}
40-
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
41-
PASSPHRASE: ${{ secrets.PASSPHRASE }}
42-
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
43-
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
44-
- name: Build and Release
45-
run: export VERSION="1.0.0-`date '+%Y%m%d%H%M%S'`"; ./gradlew -Pversion=$VERSION clean check publishMavenPublicationToSonatype closeAndReleaseSonatypeStagingRepository writeVersionToReadme
37+
- name: Build
38+
run: ./gradlew -Pversion=$VERSION clean check tools:cli-application:shadowJar
4639
env:
4740
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
4841
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
4942
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5043

51-
- name: Commit and push api-reference to branch
52-
uses: planetscale/ghcommit-action@v0.2.21
44+
- uses: ncipollo/release-action@v1
5345
with:
54-
file_pattern: "scripts/install.sh"
55-
repo: ${{ github.repository }}
56-
branch: ${{ github.ref_name }}
57-
commit_message: "TASK: Updating version in README"
58-
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
artifacts: "rmf-codegen.jar"
47+
allowUpdates: true
48+
name: "latest"
6049

6150
release_tag:
6251
permissions:

scripts/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ set -e
55
CODEGEN_VERSION=${VRAP_VERSION:-"1.0.0-20260626134234"}
66
CLI_HOME=~/.rmf-cli
77
LIB_FOLDER=$CLI_HOME/lib
8-
JAR_FILE_PATH=$LIB_FOLDER/codegen-cli-${CODEGEN_VERSION}.jar
8+
JAR_FILE_PATH=$LIB_FOLDER/rmf-codegen-latest.jar
99
SCRIPT_PATH=$CLI_HOME/codegen.sh
10-
DOWNLOAD_LINK=https://repo1.maven.org/maven2/com/commercetools/rmf/cli-application/${CODEGEN_VERSION}/cli-application-${CODEGEN_VERSION}-all.jar
10+
DOWNLOAD_LINK=https://github.com/commercetools/rmf-codegen/releases/download/latest/rmf-codegen.jar
1111
COMMAND_SYM_LINK=/usr/local/bin/rmf-codegen
1212

1313
installVrapCli(){

0 commit comments

Comments
 (0)