Skip to content

some cleanup

some cleanup #12

name: publish-snapshot
on:
push:
branches:
- main
jobs:
publish-snapshot:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- name: Make gradle wrapper executable
run: chmod +x ./gradlew
- name: Publish snapshot
run: ./gradlew publish '-Pversion=${{ github.sha }}-SNAPSHOT' '-PtwelveIterationsNexusUsername=${{ secrets.NEXUS_USER }}' '-PtwelveIterationsNexusPassword=${{ secrets.NEXUS_PASSWORD }}'