Skip to content

Commit

Permalink
Merge branch 'refactor/simplify-project-structure' into test/validati…
Browse files Browse the repository at this point in the history
…on-workflow
  • Loading branch information
mcollovati authored Dec 27, 2023
2 parents 95d2e13 + 95c2bbe commit 4250410
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-classifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
distribution: 'temurin'
java-version: '11'
server-id: repsy-vertx-vaadin
server-username: ${{ secrets.REPSY_USERNAME }}
server-password: ${{ secrets.REPSY_PASSWORD }}
server-username: REPSY_USERNAME
server-password: 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
Expand All @@ -40,4 +40,6 @@ jobs:
KIND=$( [[ "${PRJ_VERSION}" =~ "-SNAPSHOT"$ ]] && echo "snapshot" || echo "release" )
DEPLOY_OPTS="-Ddistribution.id=repsy-vertx-vaadin -Dvertx-vaadin.release.gpg" ./tools/build_flow_widgetsets.sh deploy ${KIND}
env:
REPSY_USERNAME: ${{ secrets.REPSY_USERNAME }}
REPSY_PASSWORD: ${{ secrets.REPSY_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
22 changes: 12 additions & 10 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,16 +288,6 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
server-id: repsy-vertx-vaadin-snapshots
server-username: mcollovati
server-password: ${{ secrets.REPSY_PASSWORD }}
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- uses: actions/download-artifact@v3
if: ${{ github.run_attempt == 1 }}
with:
Expand All @@ -308,6 +298,16 @@ jobs:
set -x
tar xf workspace.tar
tar cf - .m2 | (cd ~ && tar xf -)
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
server-id: repsy-vertx-vaadin-snapshots
server-username: REPSY_USERNAME
server-password: REPSY_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Build
if: ${{ github.run_attempt > 1 }}
run: |
Expand All @@ -318,4 +318,6 @@ jobs:
mvn -V -e -B -ntp -DskipVertxRun=true -DskipTests -Dvertx-vaadin.release=snapshot -Dvertx-vaadin.release.gpg deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPSY_USERNAME: ${{ secrets.REPSY_USERNAME }}
REPSY_PASSWORD: ${{ secrets.REPSY_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

0 comments on commit 4250410

Please sign in to comment.