Skip to content

Commit

Permalink
Update and rename build-and-deploy.yml to build-for-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeBlo authored Feb 4, 2024
1 parent f71b7a0 commit a9b7c1a
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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

0 comments on commit a9b7c1a

Please sign in to comment.