Skip to content

1.0.0.0-RC2 - Second Release Candidate for Update to DSF 1.x #2

1.0.0.0-RC2 - Second Release Candidate for Update to DSF 1.x

1.0.0.0-RC2 - Second Release Candidate for Update to DSF 1.x #2

Workflow file for this run

# This workflow will publish a Java project with Maven
# For more information see: https://docs.github.com/en/free-pro-team@latest/actions/guides/publishing-java-packages-with-maven
name: Java CI Publish with Maven
on:
pull_request:
types: [closed]
branches: [develop]
release:
types: [published]
jobs:
publish:
# Only run if releases are published or pull requests are merged,
# omit running if pull requests are closed without merging
if: github.event.pull_request.merged || github.event.action == 'published'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- uses: s4u/maven-settings-action@v2.8.0
with:
servers: |
[ {"id": "github-mii", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}"}]
- name: Publish with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn -B deploy --file pom.xml