Skip to content

Commit

Permalink
chore: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fhussonnois committed Mar 22, 2024
1 parent 0b0fc73 commit 8d4cb3a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
required: true
description: "Create a Tag"
default: true
generateDoc:
type: boolean
required: true
description: "Generate doc for release"
default: true
env:
JAVA_VERSION: '11'
JAVA_DISTRO: 'zulu'
Expand Down Expand Up @@ -68,6 +73,7 @@ jobs:
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
- name: 'Update Documentation'
if: "${{ github.event.inputs.generateDoc == 'true' }}"
run: |
DOC_BASEDIR="./docs/content/en/docs"
RELEASE_DOC_VERSION=$(echo ${{ env.RELEASE_VERSION }} | sed 's/\([0-9]\)\s*$/\x/')
Expand Down Expand Up @@ -118,7 +124,7 @@ jobs:
git add "./docs/*"
find . -name 'pom.xml' | xargs git add
git commit -m "ci: release version ${{ env.RELEASE_VERSION }} 馃帀"
git push --atomic origin HEAD:master
git push --atomic origin HEAD:${GITHUB_REF#refs/heads/}
HEAD=$(git rev-parse HEAD)
echo "HEAD=$HEAD" >> $GITHUB_OUTPUT
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -217,4 +223,4 @@ jobs:
run: |
find . -name 'pom.xml' | xargs git add
git commit -m "ci: bump version for next iteration to ${{ env.NEXT_VERSION }} 馃"
git push origin HEAD:master
git push origin HEAD:${GITHUB_REF#refs/heads/}

0 comments on commit 8d4cb3a

Please sign in to comment.