Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Update check-test-release.yml (#493)
Browse files Browse the repository at this point in the history
To be honest I just brainlessly copy-pasted
iterative/shtab#121, @casperdcl did I succeed? 😄
  • Loading branch information
mike0sv authored Nov 21, 2022
1 parent 73c9ba8 commit 75e2074
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/check-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,10 @@ jobs:
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD > _CHANGES.md
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: softprops/action-gh-release@v1
name: Release
run: |
changelog=$(git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD)
tag="${GITHUB_REF#refs/tags/}"
gh release create --title "mlem $tag beta" --draft --notes "$changelog" "$tag" dist/${{ steps.dist.outputs.whl }} dist/${{ steps.dist.outputs.targz }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
name: tpi ${{ steps.meta.outputs.tag }} alpha
body_path: _CHANGES.md
draft: true
files: |
dist/${{ steps.dist.outputs.whl }}

0 comments on commit 75e2074

Please sign in to comment.