Skip to content

Commit

Permalink
Fixed Maven CI Friendly Versions (#651)
Browse files Browse the repository at this point in the history
Wasn't versioning the releases.
  • Loading branch information
freemanjp authored Nov 17, 2024
1 parent d969889 commit eb71da2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ jobs:
echo "M2_HOME=$HOME/.sdkman/candidates/maven/$MAVEN_VERSION" >> $GITHUB_ENV
env:
MAVEN_VERSION: ${{ matrix.maven-version }}
- name: Set env
run: |
if [[ "$GITHUB_REF" == 'refs/tags/'* ]]; then
echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
fi
- name: Build with Maven
run: |
"$M2_HOME/bin/mvn" install \
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/maven-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ jobs:
with:
key-suffix: '-deploy'
additional-path: '!~/.m2/repository/com/github/gantsign/maven'
- name: Set env
run: |
if [[ "$GITHUB_REF" == 'refs/tags/'* ]]; then
echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
fi
- name: Deploy with Maven
run: |
./mvnw deploy \
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ jobs:
run: >-
git config --global user.name 'John Freeman' &&
git config --global user.email '[email protected]'
- name: Set env
run: |
if [[ "$GITHUB_REF" == 'refs/tags/'* ]]; then
echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
fi
- name: Build Maven site
run: |
./mvnw site \
Expand Down

0 comments on commit eb71da2

Please sign in to comment.