diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f767321c5a3..4b462a3d667 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,13 +41,23 @@ jobs: uses: actions/checkout@v2 - name: '📸 Build Documentation' + id: build run: | if [[ $GITHUB_REF =~ ^refs/tags/v ]]; then tag="${GITHUB_REF/refs\/tags\//}" + commit_message="Release $tag" else tag="" + commit_message="$default_commit_message" fi + echo "::set-output name=commit_message::$commit_message" + ./scripts/gh/update-docs.sh _build $tag + env: + default_commit_message: | + docs: ${{ github.event.head_commit.message }} + + Source commit: ${{ github.sha }} - name: '📘 Publish' if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }} @@ -59,7 +69,7 @@ jobs: keep_files: true user_name: 'William King Noel Bot' user_email: 'adrestia@iohk.io' - commit_message: 'docs: ${{ github.event.head_commit.message }}' + full_commit_message: ${{ steps.build.outputs.commit_message }} bump_sh: if: startsWith(github.ref, 'refs/tags/v')