2024-06-03 13:59:22 -04:00
|
|
|
name: Publish to snapshot maven
|
|
|
|
|
2024-06-03 16:07:24 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
2024-06-03 13:59:22 -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
|
|
|
|
- uses: https://github.com/gradle/actions/setup-gradle@v3
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
chmod +x ./gradlew
|
2024-06-05 05:34:19 -04:00
|
|
|
cat ./settings.gradle.kts | sed "s/^.*:minecraft.*$//g" > settings.gradle.kts
|
2024-06-03 17:46:30 -04:00
|
|
|
./gradlew :publishMavenJavaPublicationToFrogMCSnapshotsMavenRepository \
|
2024-06-03 13:59:22 -04:00
|
|
|
-PFrogMCSnapshotsMavenUsername=${{ secrets.MAVEN_PUSH_USER }} \
|
|
|
|
-PFrogMCSnapshotsMavenPassword=${{ secrets.MAVEN_PUSH_TOKEN }}
|