FrogLoader/.forgejo/workflows/publish.yml

31 lines
1,016 B
YAML
Raw Normal View History

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
2024-06-11 05:04:04 -04:00
cache-write-only: "!startsWith(github.event.head_commit.message, '[no-cache]')"
2024-06-03 13:59:22 -04:00
- uses: https://github.com/gradle/actions/setup-gradle@v3
- name: Check Gradle Setup
2024-06-03 13:59:22 -04:00
run: |
chmod +x ./gradlew
2024-06-17 07:36:21 -04:00
cat ./settings.gradle.kts | sed "s/^.*:minecraft.*$//g" > settings.gradle.kts1
mv settings.gradle.kts1 settings.gradle.kts
- name: Build
run: |
./gradlew :publishMavenJavaPublicationToFrogMCSnapshotsMavenRepository \
2024-06-03 13:59:22 -04:00
-PFrogMCSnapshotsMavenUsername=${{ secrets.MAVEN_PUSH_USER }} \
2024-06-11 05:04:04 -04:00
-PFrogMCSnapshotsMavenPassword=${{ secrets.MAVEN_PUSH_TOKEN }} --stacktrace
- name: Update Meta
run: ./gradlew :updateMeta -PFrogMCMetaKey=${{ secrets.META_SECRET }} --stacktrace