Snapshot Release #5
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
# Perform a snapshot build and deploy to snapshot repository | |
# Notes | |
# - cannot run on Windows, as we use shell scripts | |
name: "Snapshot Release" | |
on: | |
workflow_dispatch: | |
env: | |
JAVA_VERSION: '11' | |
JAVA_DISTRO: 'temurin' | |
MAVEN_HTTP_ARGS: '-Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -Dmaven.wagon.http.retryHandler.count=3' | |
concurrency: | |
group: release-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
timeout-minutes: 60 | |
runs-on: ubuntu-20.04 | |
environment: release | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Set up JDK 11 | |
uses: actions/[email protected] | |
with: | |
distribution: ${{ env.JAVA_DISTRO }} | |
java-version: ${{ env.JAVA_VERSION }} | |
cache: maven | |
- name: Build and deploy | |
env: | |
MAVEN_SETTINGS: ${{ secrets.MAVEN_SETTINGS }} | |
RELEASE_WORKFLOW: "true" | |
run: | | |
etc/scripts/release.sh deploy_snapshot |