Skip to content

Commit

Permalink
Enable snapshot publishing (please work)
Browse files Browse the repository at this point in the history
  • Loading branch information
quat1024 committed Jun 20, 2024
1 parent 8b04077 commit 3e60a29
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
13 changes: 7 additions & 6 deletions .github/workflows/cut_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3e60a29

Please sign in to comment.