Skip to content

Commit

Permalink
Use shell and run
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvisser authored and GuusdeWit committed Oct 2, 2023
1 parent 9bc514f commit 93d6baa
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/actions/cd/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,18 @@ runs:
gpg-private-key: ${{ inputs.gpg-key }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
- name: Set release version
shell: mvn build-helper:parse-version versions:set -DnewVersion=${{ inputs.new-version }} versions:commit
shell: bash
run: mvn build-helper:parse-version versions:set -DnewVersion=${{ inputs.new-version }} versions:commit
- name: Build and Release
shell: mvn clean deploy
shell: bash
run: mvn clean deploy
env:
OSSRH_USERNAME: ${{ inputs.server-username }}
OSSRH_TOKEN: ${{ inputs.server-token }}
MAVEN_GPG_PASSPHRASE: ${{ inputs.gpg-passphrase }}
- name: Set Release version env variable
shell: |
shell: bash
run: |
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
- name: Create Release
id: create_release
Expand All @@ -68,7 +71,8 @@ runs:
draft: true
prerelease: false
- name: Prepare next release version
shell: mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT versions:commit
shell: bash
run: mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT versions:commit
- name: Commit & Push changes
uses: actions-js/push@master
with:
Expand Down

0 comments on commit 93d6baa

Please sign in to comment.