diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac3ee9c..3ea870a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,4 +46,27 @@ jobs: uses: gradle/actions/setup-gradle@v3.4.2 - name: Build - run: ./demo/gradlew clean build --info --stacktrace \ No newline at end of file + 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/setup-gradle@v3.4.2 + + - name: Publish with Gradle + run: ./gradlew publish --info --stacktrace -Ppublish-username=${{secrets.PUBLISH_USERNAME}} -Ppublish-password=${{secrets.PUBLISH_PASSWORD}} \ No newline at end of file diff --git a/.github/workflows/cut_release.yml b/.github/workflows/cut_release.yml index f79e639..ce1d88a 100644 --- a/.github/workflows/cut_release.yml +++ b/.github/workflows/cut_release.yml @@ -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/gradle-build-action@v2.4.2 - with: - arguments: publish --info --stacktrace -Ppublish-username=${{secrets.PUBLISH_USERNAME}} -Ppublish-password=${{secrets.PUBLISH_PASSWORD}} + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3.4.2 + + - name: Publish + run: ./gradlew publish --info --stacktrace -Ppublish-username=${{secrets.PUBLISH_USERNAME}} -Ppublish-password=${{secrets.PUBLISH_PASSWORD}} env: VOLDE_RELEASE_MODE: 1 \ No newline at end of file