-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable snapshot publishing (please work)
- Loading branch information
Showing
2 changed files
with
31 additions
and
7 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 |
---|---|---|
|
@@ -46,4 +46,27 @@ jobs: | |
uses: gradle/actions/[email protected] | ||
|
||
- name: Build | ||
run: ./demo/gradlew clean build --info --stacktrace | ||
run: ./demo/gradlew clean build --info --stacktrace | ||
|
||
publish_snapshot: | ||
name: Publish `-SNAPSHOT` artifact to Sleeping Town maven | ||
runs-on: ubuntu-latest | ||
needs: compile_samples | ||
#security is my passion (ideally pull_request actions won't fire this?? reh) | ||
if: (github.event_name == 'push' && github.ref_name == 'trunk') | ||
environment: publishing | ||
steps: | ||
- name: git checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: "17" | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/[email protected] | ||
|
||
- name: Publish with Gradle | ||
run: ./gradlew publish --info --stacktrace -Ppublish-username=${{secrets.PUBLISH_USERNAME}} -Ppublish-password=${{secrets.PUBLISH_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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,18 @@ jobs: | |
environment: publishing | ||
steps: | ||
- name: git checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java 17 | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: "17" | ||
|
||
- name: Publish with Gradle | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: publish --info --stacktrace -Ppublish-username=${{secrets.PUBLISH_USERNAME}} -Ppublish-password=${{secrets.PUBLISH_PASSWORD}} | ||
- name: Setup Gradle | ||
uses: gradle/actions/[email protected] | ||
|
||
- name: Publish | ||
run: ./gradlew publish --info --stacktrace -Ppublish-username=${{secrets.PUBLISH_USERNAME}} -Ppublish-password=${{secrets.PUBLISH_PASSWORD}} | ||
env: | ||
VOLDE_RELEASE_MODE: 1 |