Skip to content

Commit

Permalink
deploy on repsy
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Dec 27, 2023
1 parent 6d4d1da commit 164540e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/deploy-classifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,16 @@ jobs:
with: # running setup-java again overwrites the settings.xml
distribution: 'temurin'
java-version: '11'
server-id: github-vertx-vaadin # Value of the distributionManagement/repository/id field of the pom.xml
#server-username: mcollovati # env variable for username in deploy
#server-password: ${{ secrets.GH_PKG_DEPLOY_TOKEN }} # env variable for token in deploy
server-id: repsy-vertx-vaadin
server-username: ${{ secrets.REPSY_USERNAME }}
server-password: ${{ secrets.REPSY_PASSWORD }}
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
- name: Deploy classifiers
run: |
./mvnw -N -ntp install
PRJ_VERSION=$(./mvnw -pl :vaadin-flow-sockjs help:evaluate -q -Dexpression='project.version' -DforceStdout)
KIND=$( [[ "${PRJ_VERSION}" =~ "-SNAPSHOT"$ ]] && echo "snapshot" || echo "release" )
DEPLOY_OPTS="-Ddistribution.id=github-vertx-vaadin -Dvertx-vaadin.release.gpg" ./tools/build_flow_widgetsets.sh deploy ${KIND}
DEPLOY_OPTS="-Ddistribution.id=repsy-vertx-vaadin -Dvertx-vaadin.release.gpg" ./tools/build_flow_widgetsets.sh deploy ${KIND}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JFROG_USERNAME: [email protected]
JFROG_TOKEN: ${{ secrets.JFROG_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
2 changes: 1 addition & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ jobs:
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
server-id: repsy-vertx-vaadin
server-id: repsy-vertx-vaadin-snapshots
server-username: ${{ secrets.REPSY_USERNAME }}
server-password: ${{ secrets.REPSY_PASSWORD }}
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
<checkstyle.directory>${maven.multiModuleProjectDirectory}/checkstyle</checkstyle.directory>
<checkstyle.skip>true</checkstyle.skip>

<distribution.snapshots.id>repsy-vertx-vaadin</distribution.snapshots.id>
<distribution.snapshots.url>https://repo.repsy.io/mvn/mcollovati/vertx-vaadin</distribution.snapshots.url>
<distribution.snapshots.id>repsy-vertx-vaadin-snapshots</distribution.snapshots.id>
<distribution.snapshots.url>https://repo.repsy.io/mvn/mcollovati/vertx-vaadin-snapshots</distribution.snapshots.url>
<distribution.releases.id>repsy-vertx-vaadin</distribution.releases.id>
<distribution.releases.url>https://repo.repsy.io/mvn/mcollovati/vertx-vaadin</distribution.releases.url>

Expand Down
2 changes: 1 addition & 1 deletion tools/build_flow_widgetsets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ for version in "${versions[@]}"; do
_mvn_target="clean $_action"
fi

$_mvn -B --fail-never -ntp -Prelease-flow -pl :vaadin-flow-sockjs -Dvertx-vaadin.release=${_kind} -DskipTests -Dvaadin.platform.version=${version} -Dvaadin.flow.version=${flow_client_version} $_mvn_target ${DEPLOY_OPTS}
$_mvn -B --fail-never -ntp -pl :vaadin-flow-sockjs -Dvertx-vaadin.release=${_kind} -DskipTests -Dvaadin.platform.version=${version} -Dvaadin.flow.version=${flow_client_version} $_mvn_target ${DEPLOY_OPTS}
_last_built=${flow_client_version}
fi

Expand Down

0 comments on commit 164540e

Please sign in to comment.