HuskSync 3.0.2 - Hotfix #7
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
# Builds, tests and publishes to maven when a release is published | |
name: Release Tests | |
on: | |
release: | |
types: [ published ] | |
permissions: | |
contents: read | |
checks: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build test publish | |
env: | |
RELEASES_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
RELEASES_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v3 | |
if: success() || failure() # always run even if the previous step fails | |
with: | |
report_paths: '**/build/test-results/test/TEST-*.xml' |