Skip to content

Bump org.codehaus.mojo:versions-maven-plugin from 2.17.1 to 2.18.0 (#… #336

Bump org.codehaus.mojo:versions-maven-plugin from 2.17.1 to 2.18.0 (#…

Bump org.codehaus.mojo:versions-maven-plugin from 2.17.1 to 2.18.0 (#… #336

Workflow file for this run

name: Build
on:
push:
branches: [main]
schedule: [cron: 0 0 * * 1]
jobs:
build:
runs-on: ubuntu-latest
env:
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress --settings=.github/settings.xml
steps:
- run: git config --global user.name "${{ vars.KOKUWA_IO_BOT_NAME }}"
- run: git config --global user.email "${{ vars.KOKUWA_IO_BOT_EMAIL }}"
- uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_ACTION_TOKEN }}
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: maven
- run: mvn $MAVEN_ARGS dependency:go-offline
- run: mvn $MAVEN_ARGS deploy
env:
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
- run: mvn $MAVEN_ARGS deploy:deploy --file target/.reduced-pom.xml -DaltDeploymentRepository=sonatype-nexus::https://oss.sonatype.org/content/repositories/snapshots
env:
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
- run: mvn $MAVEN_ARGS site-deploy
env:
GIT_ACTION_TOKEN: ${{ secrets.GIT_ACTION_TOKEN }}