FrogLoader/.forgejo/workflows/publish.yml
moehreag d2517c3b76
Some checks failed
Publish to snapshot maven / build (push) Failing after 25s
try to fix the workflow (x2)
2024-06-17 13:37:58 +02:00

31 lines
1,016 B
YAML

name: Publish to snapshot maven
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: https://github.com/actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
cache-write-only: "!startsWith(github.event.head_commit.message, '[no-cache]')"
- uses: https://github.com/gradle/actions/setup-gradle@v3
- name: Check Gradle Setup
run: |
chmod +x ./gradlew
cat ./settings.gradle.kts | sed "s/^.*:minecraft.*$//g" > settings.gradle.kts1
mv settings.gradle.kts1 settings.gradle.kts
- name: Build
run: |
./gradlew :publishMavenJavaPublicationToFrogMCSnapshotsMavenRepository \
-PFrogMCSnapshotsMavenUsername=${{ secrets.MAVEN_PUSH_USER }} \
-PFrogMCSnapshotsMavenPassword=${{ secrets.MAVEN_PUSH_TOKEN }} --stacktrace
- name: Update Meta
run: ./gradlew :updateMeta -PFrogMCMetaKey=${{ secrets.META_SECRET }} --stacktrace