phytotelma/.forgejo/workflows/publish.yml
moehreag 9b854c7be0
All checks were successful
Publish to snapshot maven / build (push) Successful in 18s
only publish on pushes to the main branch
2024-05-19 17:59:48 +02:00

24 lines
623 B
YAML

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
- uses: https://github.com/gradle/actions/setup-gradle@v3
- name: Build
run: |
chmod +x ./gradlew
./gradlew publishAllPublicationsToEsnesnonSnapshotsMavenRepository \
-PEsnesnonSnapshotsMavenUsername=${{ secrets.MAVEN_PUSH_USER }} \
-PEsnesnonSnapshotsMavenPassword=${{ secrets.MAVEN_PUSH_TOKEN }}