From c3c84a59b082feeae8df015edbf7b751c48af386 Mon Sep 17 00:00:00 2001 From: TEParsons Date: Wed, 12 Jun 2024 13:27:47 +0100 Subject: [PATCH] SYS: Automatically attach binaries on release --- .github/workflows/pypi.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml index a51c96a..4708dde 100644 --- a/.github/workflows/pypi.yaml +++ b/.github/workflows/pypi.yaml @@ -12,6 +12,7 @@ jobs: environment: pypi permissions: id-token: write + contents: write steps: - uses: actions/checkout@master @@ -28,6 +29,14 @@ jobs: run: | python -m build + - name: Attach binaries + if: startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + files: | + dist/* + - name: Upload to PyPi if: startsWith(github.ref, 'refs/tags/') uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file