diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bddc6786..b9d58f6b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,6 +4,9 @@ on: release: types: [published] +permissions: + contents: write + jobs: build-and-publish: name: Build and publish to PyPi @@ -23,6 +26,11 @@ jobs: - name: Build run: | python3 -m build --sdist --wheel --outdir dist/ . + - name: Upload to release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release upload ${{ github.ref }} dist/* - name: Publish # if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1