Skip to content

Commit

Permalink
[MAINT]: updated release workflow (#21)
Browse files Browse the repository at this point in the history
* renamed release workflow file

* changed release workflow to support rich descriptions

* updated release workflow checkout action to v4

* updated release workflow to use updated release action
  • Loading branch information
wranders authored Oct 29, 2023
1 parent ac86d2a commit 7679ebb
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,12 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: git fetch --tags --force
- id: taginfo
run: |
TAG=$(echo ${{ github.ref }} | sed -e 's|.*/\(.*\)|\1|')
echo "::set-output name=tag::${TAG}"
SUBJ=$(git tag -l --format='%(contents:subject)%0a%0a%(contents:body)' $TAG)
echo "::set-output name=subject::${SUBJ}"
- uses: actions/create-release@v1
- uses: actions/checkout@v4
with:
fetch-tags: true
- run: git tag -l --format='%(contents:subject)%0a%0a%(contents:body)' > RELEASE.txt
- uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ steps.taginfo.outputs.tag }}
body: ${{ steps.taginfo.outputs.subject }}
body_path: RELEASE.txt

0 comments on commit 7679ebb

Please sign in to comment.