Skip to content

Commit

Permalink
chore: update deploy classifier workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Aug 8, 2023
1 parent 877cc55 commit 7f1539d
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/deploy-classifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,38 @@ jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
branch: [ {name: "master", java: 8}, {name: "vaadin-14.2", java: 8}, { name: "development", java: 11} ]
branch: [ "development" ]

steps:
- uses: actions/checkout@v2
with:
ref: ${{ matrix.branch.name }}
ref: ${{ matrix.branch }}
fetch-depth: 0
- name: Checkout latest tag
run: git checkout $(git describe --abbrev=0 --tags --match="flow-*")
- name: Set up Java
uses: actions/setup-java@v3
with: # running setup-java again overwrites the settings.xml
java-version: ${{ matrix.branch.java }}
distribution: 'temurin'
server-id: jfrog-vertx-vaadin # Value of the distributionManagement/repository/id field of the pom.xml
server-username: JFROG_USERNAME # env variable for username in deploy
server-password: JFROG_TOKEN # env variable for token in deploy
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
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=jfrog-vertx-vaadin -Dvertx-vaadin.release.gpg" ./tools/build_flow_widgetsets.sh deploy ${KIND}
DEPLOY_OPTS="-Ddistribution.id=github-vertx-vaadin -Dvertx-vaadin.release.gpg" ./tools/build_flow_widgetsets.sh deploy ${KIND}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JFROG_USERNAME: mcollovati@gmail.com
JFROG_TOKEN: ${{ secrets.JFROG_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

0 comments on commit 7f1539d

Please sign in to comment.