thyroxine/.forgejo/workflows/publish.yml

24 lines
620 B
YAML
Raw Normal View History

2024-05-13 08:23:55 -04:00
name: Publish to snapshot maven
on:
push:
branches:
- 'main'
2024-05-13 08:23:55 -04:00
jobs:
build:
runs-on: docker
steps:
2024-05-13 08:26:03 -04:00
- uses: actions/checkout@v4
2024-05-13 08:30:18 -04:00
- uses: https://github.com/actions/setup-java@v4
with:
distribution: 'temurin'
2024-05-13 08:33:40 -04:00
java-version: 21
2024-05-13 08:30:18 -04:00
- uses: https://github.com/gradle/actions/setup-gradle@v3
2024-05-13 08:23:55 -04:00
- name: Build
2024-05-13 08:26:03 -04:00
run: |
2024-05-13 08:23:55 -04:00
chmod +x ./gradlew
2024-06-02 09:59:25 -04:00
./gradlew publishMavenJavaPublicationToFrogMCSnapshotsMavenRepository \
-PFrogMCSnapshotsMavenUsername=${{ secrets.MAVEN_PUSH_USER }} \
-PFrogMCSnapshotsMavenPassword=${{ secrets.MAVEN_PUSH_TOKEN }}