Skip to content

Commit

Permalink
mkdocs-release link major.minor to major.minor.bugfix (logicalclocks#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
robzor92 committed Jun 30, 2022
1 parent e6a0d70 commit b003393
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/mkdocs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ jobs:
with:
fetch-depth: 0

- name: set release version
- name: set major/minor/bugfix release version
working-directory: ./java
run: echo "RELEASE_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev 'Download|INFO|WARNING')" >> $GITHUB_ENV

- name: set major/minor release version
run: echo "MAJOR_VERSION=$(echo $RELEASE_VERSION | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/')" >> $GITHUB_ENV

- uses: actions/setup-python@v2
with:
python-version: '3.8'
Expand All @@ -34,5 +37,5 @@ jobs:
git config --global user.email [email protected]
- name: mike deploy docs
run: mike deploy ${{ env.RELEASE_VERSION }} latest -u --push
run: mike deploy ${{ env.RELEASE_VERSION }} ${{ env.MAJOR_VERSION }} -u --push

0 comments on commit b003393

Please sign in to comment.