From cbdaa30d3fa4b30adff3f8903a963653fe816de9 Mon Sep 17 00:00:00 2001 From: Maoyue <95519633+MagicTeaMC@users.noreply.github.com> Date: Sun, 27 Aug 2023 16:29:59 +0800 Subject: [PATCH] we dont need to release jar file now :) --- .github/workflows/Java-CI.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/Java-CI.yml b/.github/workflows/Java-CI.yml index 604fbc1..461cd4f 100644 --- a/.github/workflows/Java-CI.yml +++ b/.github/workflows/Java-CI.yml @@ -3,11 +3,11 @@ name: "Pre-release" on: push: branches: - - "main" + - "*" jobs: pre-release: - name: "Pre-Release" + name: "Build" runs-on: "ubuntu-latest" steps: @@ -23,14 +23,4 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-maven- - name: Build Jar file - run: mvn clean install - - name: Get commit SHA - run: echo "GITHUB_SHA_SHORT=$(git rev-parse --short $GITHUB_SHA)" >> $GITHUB_ENV - - name: Release Jar file - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "${{ env.GITHUB_SHA_SHORT }}" - prerelease: true - title: 'Orange Dog dev-${{ env.GITHUB_SHA_SHORT }}' - + run: mvn clean install \ No newline at end of file