Skip to content

hardcode (temporarily) snapshot release actions #1289

hardcode (temporarily) snapshot release actions

hardcode (temporarily) snapshot release actions #1289

Workflow file for this run

name: snapshot
# This temporary work to make sure snapshot release is actually performed correctly. Once gh-actions-shared fixed,
# This file should be reverted back to its original form (refer to gh-action-shared)
env:
MAVEN_OPTS: "-Xmx2G -XX:+ExitOnOutOfMemoryError -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3"
on:
- pull_request
- push
- workflow_dispatch
jobs:
snapshot:
runs-on: ubuntu-22.04
if: ${{ github.actor != 'dependabot[bot]' }}
timeout-minutes: 360
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Configure Cloudsmith credentials
uses: s4u/maven-settings-action@v4.0.0
with:
githubServer: false
servers: |
[
{"id": "central", "username": "${env.CLOUDSMITH_USERNAME}", "password": "${env.CLOUDSMITH_CENTRAL_PASSWORD}"},
{"id": "cloudsmith", "username": "${env.CLOUDSMITH_USERNAME}", "password": "${env.CLOUDSMITH_PASSWORD}"}
]
- name: Set up Maven
run: mvn --errors --batch-mode --show-version wrapper:wrapper "-Dmaven=3.8.4"
- name: Deploy current snapshot
env:
CLOUDSMITH_USERNAME: ${{ secrets.CLOUDSMITH_USERNAME }}
CLOUDSMITH_PASSWORD: ${{ secrets.CLOUDSMITH_PASSWORD }}
CLOUDSMITH_CENTRAL_PASSWORD: ${{ secrets.CLOUDSMITH_CENTRAL_PASSWORD }}
run: ./mvnw --errors --batch-mode --show-version -DskipTests=true -Dgpg.skip=true deploy
- name: Upload artifact on failure
uses: actions/upload-artifact@v7
if: failure()
with:
name: failure-snapshot
path: '**/target/surefire-reports/*'