From 019eb4ab46dda7677f4df1a8aff01f2eb313c601 Mon Sep 17 00:00:00 2001 From: Mateusz Masiarz Date: Sat, 7 Sep 2024 11:57:55 +0200 Subject: [PATCH] Update release workflow --- .github/workflows/release.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) 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