-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# TODO Check if there is any buggy functions Implement test units Enhance metadata reader stylesheet Fix buggy Embed autocomplete/detection
- Loading branch information
Showing
2 changed files
with
3 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,34 +32,11 @@ jobs: | |
distribution: 'temurin' | ||
cache: maven | ||
|
||
- name: Set version (Linux) | ||
if: runner.os == 'Linux' | ||
- name: Get version from pom.xml | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
VERSION=$(git describe --tags --always --dirty | sed 's/^v//; s/-/./') | ||
CLEAN_VERSION=$(echo $VERSION | sed 's/[^0-9.]//g') | ||
if [[ ! $CLEAN_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
CLEAN_VERSION="0.1.7-SNAPSHOT" | ||
fi | ||
echo "PROJECT_VERSION=$CLEAN_VERSION" >> $GITHUB_ENV | ||
echo "Set version to $CLEAN_VERSION" | ||
echo "PROJECT_VERSION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout)" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Set version (Windows) | ||
if: runner.os == 'Windows' | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
$VERSION = (git describe --tags --always --dirty) -replace '^v','' -replace '-','.' | ||
$CLEAN_VERSION = $VERSION -replace '[^0-9.]','' | ||
if ($CLEAN_VERSION -notmatch '^\d+\.\d+\.\d+$') { | ||
$CLEAN_VERSION = "0.1.7-SNAPSHOT" | ||
} | ||
echo "PROJECT_VERSION=$CLEAN_VERSION" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
echo "Set version to $CLEAN_VERSION" | ||
shell: pwsh | ||
|
||
- name: Build with Maven | ||
run: mvn clean install -B -V | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters