Skip to content

Commit

Permalink
[DEV] release workflow generates release notes (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
dni authored Aug 17, 2023
1 parent 7ef3dd6 commit ca659f7
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build and publish on pypi repository and release github version
name: release
on:
push:
tags:
Expand All @@ -8,26 +8,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.15
with:
pypi_token: ${{ secrets.PYPI_API_KEY }}
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1

- name: Create github release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" --generate-notes
- name: Get Asset name
run: |
export PKG=$(ls dist/ | grep tar)
set -- $PKG
echo "name=$1" >> $GITHUB_ENV
- name: Upload Release Asset (sdist) to GitHub
id: upload-release-asset
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit ca659f7

Please sign in to comment.