phytotelma/.forgejo/workflows/publish.yml

25 lines
718 B
YAML
Raw Normal View History

2024-05-13 10:32:57 -04:00
name: Publish to snapshot maven
on:
push:
branches:
- 'mistress'
2024-05-13 10:32:57 -04:00
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:52 -04:00
cache-write-only: "!startsWith(github.event.head_commit.message, '[no-cache]')"
2024-05-13 10:32:57 -04:00
- uses: https://github.com/gradle/actions/setup-gradle@v3
- name: Build
run: |
chmod +x ./gradlew
2024-06-02 10:19:16 -04:00
./gradlew publishAllPublicationsToFrogMCSnapshotsMavenRepository \
-PFrogMCSnapshotsMavenUsername=${{ secrets.MAVEN_PUSH_USER }} \
2024-06-11 05:03:52 -04:00
-PFrogMCSnapshotsMavenPassword=${{ secrets.MAVEN_PUSH_TOKEN }} --stacktrace