Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release.yml #29

Merged
merged 5 commits into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading