Skip to content

Commit

Permalink
Merge pull request #29 from marco-calautti/marco-calautti-patch-5
Browse files Browse the repository at this point in the history
Update release.yml
  • Loading branch information
marco-calautti authored Dec 28, 2023
2 parents 3be2b92 + 0a4f5b1 commit 477b24a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,25 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- if: contains(github.ref, 'refs/tags/')
name: Get Tag Message
id: get_tag_message
run: |
cd ${{github.workspace}}
echo "$(git for-each-ref refs/tags/${{github.ref_name}} --format='%(contents)')" >> "${{github.workspace}}/release_notes.txt"
git fetch --tags --force
echo "TAG_MESSAGE<<EOF" >> "$GITHUB_OUTPUT"
echo "$(git for-each-ref ${{github.ref}} --format='%(contents)')" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
- if: contains(github.ref, 'refs/tags/')
name: Prepare Release
uses: softprops/action-gh-release@v1
with:
name: Delta Patcher ${{ github.ref_name }}
body_path: ${{github.workspace}}/release_notes.txt
body: ${{ steps.get_tag_message.outputs.TAG_MESSAGE }}
draft: false
prerelease: false
generate_release_notes: false
Expand All @@ -57,7 +63,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive

- if: startsWith(matrix.os, 'ubuntu')
name: Pull dependencies
run: sudo apt install -y build-essential cmake git libgtk-3-dev
Expand Down

0 comments on commit 477b24a

Please sign in to comment.