Publish snapshot to SciJava Maven #15
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
# This workflow will publish jars to maven.scijava.org. | |
# Currently, it must be triggered manually and uses Java 11 | |
# (because there is no requirement for jpackage). | |
name: Publish snapshot to SciJava Maven | |
on: | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'adopt-hotspot' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Publish package | |
run: ./gradlew publish -P toolchain=11 | |
env: | |
MAVEN_USER: ${{ secrets.MAVEN_USER }} | |
MAVEN_PASS: ${{ secrets.MAVEN_PASS }} |