Skip to content

Commit

Permalink
Ensure version is correct upon deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
ascopes committed Nov 20, 2023
1 parent 86a90ad commit 0a1fe0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
release_version="$(./mvnw -B help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//g')"
else
release_version='${{ inputs.version }}'
./mvnw -B -e versions:set -DnewVersion="${{ inputs.version }}"
fi
echo "release_version=${release_version}" >> "${GITHUB_ENV}"
Expand Down Expand Up @@ -97,7 +98,7 @@ jobs:
path: target/site

- name: Deploy site
if: ${{ !inputs.dry-run }}
if: ${{ ! inputs.dry-run }}
id: site
uses: actions/deploy-pages@v2

Expand Down

0 comments on commit 0a1fe0c

Please sign in to comment.