Skip to content

Commit

Permalink
Merge pull request #55 from borisrizov-zf/ci/fix-publish-workflow-syntax
Browse files Browse the repository at this point in the history
chore: add shell property to steps
  • Loading branch information
borisrizov-zf authored Nov 24, 2023
2 parents 0ef3755 + d058036 commit 9fb2919
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
# Environment variables used in settings.xml and pom.xml
- name: Publish to Maven
shell: bash
env:
MAVEN_USERNAME: ${{ secrets.ORG_OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }}
Expand All @@ -84,7 +85,7 @@ jobs:
# -D gpg.passphrase: a system property used by the build process for signing
# -D releaseVersion: set the version you're releasing (will also tag using this)
# -D developmentVersion: set the next dev version
run: |-
run: |
echo "Publishing using version: ${{ inputs.version }}"
./mvnw -B -U \
-Pci-cd \
Expand All @@ -101,7 +102,8 @@ jobs:
# artifact_name is cx-ssi-lib and the version should be the *-SNAPSHOT
# In the next step we'll use the releaseVersion to finalize the upload
- name: Get generated artifact name
run: |-
shell: bash
run: |
echo "artifact_name=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.artifactId -q -DforceStdout)" >> "$GITHUB_ENV"
echo "artifact_version=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version -q -DforceStdout)" >> "$GITHUB_ENV"
Expand Down

0 comments on commit 9fb2919

Please sign in to comment.