From a9b7c1a29e3f52b8418b9c781fda3691060025c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=2E=20Elmac=C4=B1?= <55738066+CodeBlo@users.noreply.github.com> Date: Sun, 4 Feb 2024 21:37:19 +0300 Subject: [PATCH] Update and rename build-and-deploy.yml to build-for-release.yml --- .../{build-and-deploy.yml => build-for-release.yml} | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) rename .github/workflows/{build-and-deploy.yml => build-for-release.yml} (66%) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-for-release.yml similarity index 66% rename from .github/workflows/build-and-deploy.yml rename to .github/workflows/build-for-release.yml index 13856fe..8b6eea6 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-for-release.yml @@ -1,10 +1,10 @@ -name: Build and Deploy +name: Build for Release on: workflow_dispatch permissions: contents: write jobs: - build-and-deploy: + build-for-release: runs-on: ubuntu-latest steps: @@ -22,16 +22,10 @@ jobs: java-version: '19' distribution: 'corretto' cache: maven - server-id: central # Value of the distributionManagement/repository/id field of the pom.xml - server-username: ${{ secrets.MAVEN_USERNAME }} # env variable for username in deploy - server-password: ${{ secrets.MAVEN_CENTRAL_TOKEN }} # env variable for token in deploy gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import - name: Prepare for release run: mvn -B release:prepare --file pom.xml - - - name: Perform release - run: mvn -B release:perform - name: Update dependency graph uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6