From 7ca29d5fd0c917d48bf3b0afe2ca478910ac381a Mon Sep 17 00:00:00 2001 From: Satya <35016438+satran004@users.noreply.github.com> Date: Mon, 27 Nov 2023 18:00:54 +0800 Subject: [PATCH] Create snapshot_manual.yml --- .github/workflows/snapshot_manual.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/snapshot_manual.yml diff --git a/.github/workflows/snapshot_manual.yml b/.github/workflows/snapshot_manual.yml new file mode 100644 index 00000000..a0a8da6d --- /dev/null +++ b/.github/workflows/snapshot_manual.yml @@ -0,0 +1,27 @@ +name: Manual Snapshot Push to SNAPSHOT repo + +on: + workflow_dispatch: + +jobs: + commit-build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: 'true' + - name: Set up JDK 21 + uses: actions/setup-java@v2 + with: + java-version: '21' + distribution: 'liberica' + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew clean build -PskipSigning=true --stacktrace + - name: Publish package to SNAPSHOT repository + run: ./gradlew publish -PskipSigning=true --warn --stacktrace + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_OSSRH_TOKEN }}