froglib/.forgejo/workflows/publish.yml

25 lines
723 B
YAML
Raw Normal View History

2024-06-10 15:50:59 -04:00
name: Publish to snapshot maven
on:
push:
branches:
- 'mistress'
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: https://github.com/actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
2024-06-11 05:03:44 -04:00
cache-write-only: "!startsWith(github.event.head_commit.message, '[no-cache]')"
2024-06-10 15:50:59 -04:00
- uses: https://github.com/gradle/actions/setup-gradle@v3
- name: Build
run: |
chmod +x ./gradlew
./gradlew publishMavenJavaPublicationToFrogMCSnapshotsMavenRepository \
2024-06-10 15:50:59 -04:00
-PFrogMCSnapshotsMavenUsername=${{ secrets.MAVEN_PUSH_USER }} \
2024-06-10 21:21:28 -04:00
-PFrogMCSnapshotsMavenPassword=${{ secrets.MAVEN_PUSH_TOKEN }} --stacktrace