-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New workflow: publish to snapshot repo
- Loading branch information
Showing
2 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Build and publish snapshot | ||
|
||
on: [push] | ||
|
||
jobs: | ||
publish: | ||
name: Publish `-SNAPSHOT` artifact to Sleeping Town maven | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: (github.event_name == 'push' && github.ref_name == 'main') | ||
environment: publishing | ||
steps: | ||
- name: git checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Java 21 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "temurin" | ||
java-version: "21" | ||
|
||
- name: Publish with Gradle | ||
uses: gradle/gradle-build-action@v2.4.2 | ||
with: | ||
arguments: clean build publish --info --stacktrace -PsleepingUsername=${{secrets.SLEEPING_USERNAME}} -PsleepingPassword=${{secrets.SLEEPING_PASSWORD}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters