From f69ccf4298f1c968170dbb926b2d709fda5f64f3 Mon Sep 17 00:00:00 2001 From: Apehum Date: Wed, 25 Oct 2023 23:30:10 +0800 Subject: [PATCH] ci: publish workflow --- .github/workflows/publish.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..6b2721f --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,29 @@ +name: Publish Snapshot + +on: + push: + branches: + - main + +jobs: + build: + name: Publish Snapshot + runs-on: ubuntu-latest + + steps: + - name: Clone repository + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: temurin + + - name: Build with Gradle + uses: gradle/gradle-build-action@v2 + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + with: + arguments: publish