Skip to content

Publish

Publish #4

Workflow file for this run

name: Publish
on: workflow_dispatch
jobs:
Publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run linters and unit tests
run: ./gradlew check --stacktrace
- name: Publish test reports
uses: actions/upload-artifact@v2
with:
name: test-reports
path: build/reports/tests
if: ${{ failure() }}
- name: Publish JAR
run: ./gradlew publish --stacktrace
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}