Webrepl updates (#200) #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maven Release | |
# Deploy the webrepl when a new tag is published | |
on: | |
push: | |
tags: [ 'webrepl-*' ] | |
jobs: | |
release: | |
name: Maven PR Builder (JDK ${{ matrix.java }}) | |
runs-on: ubuntu-latest | |
env: | |
AUTORELEASE_ARTIFACT: false | |
strategy: | |
matrix: | |
java: [ 21 ] | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 | |
- name: Install JDK ${{ matrix.java }} | |
uses: actions/setup-java@860f60056505705214d223b91ed7a30f173f6142 # v3.3.0 | |
with: | |
cache: maven | |
distribution: 'adopt' | |
java-version: ${{ matrix.java }} | |
- name: Login to Docker repository | |
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # v2.0.0 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Set release version | |
shell: bash | |
run: | | |
GITHUB_REF="${{ github.ref }}" && | |
TAG_NAME="${GITHUB_REF#refs/tags/}" && | |
echo "RELEASE_VERSION=${TAG_NAME#webrepl-}" >> $GITHUB_ENV | |
- name: Release with Maven | |
uses: samuelmeuli/action-maven-publish@201a45a3f311b2ee888f252ba9f4194257545709 # v1.4.0 | |
with: | |
gpg_private_key: ${{ secrets.BUILD_KEY }} | |
gpg_passphrase: ${{ secrets.BUILD_PASSPHRASE }} | |
nexus_username: ${{ secrets.SONATYPE_USERNAME }} | |
nexus_password: ${{ secrets.SONATYPE_PASSWORD }} | |
maven_profiles: "release" | |
maven_args: > | |
-Drevision=${{ env.RELEASE_VERSION }} -Dautorelease.artifact=${{ env.AUTORELEASE_ARTIFACT }} -ntp |