Skip to content

Fix new action lol

Fix new action lol #2

name: Build and publish snapshot
on: [push]
jobs:
publish:
name: Publish `-SNAPSHOT` artifact to Sleeping Town maven
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.ref_name == 'main')
environment: publishing
steps:
- name: git checkout
uses: actions/checkout@v3
- name: Setup Java 21
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "21"
- name: Publish with Gradle
uses: gradle/[email protected]
with:
arguments: clean build publish --info --stacktrace -PsleepingUsername=${{secrets.SLEEPING_USERNAME}} -PsleepingPassword=${{secrets.SLEEPING_PASSWORD}}