From 84712d8cdafe996e8dfc2cd1c01862a02a423ff5 Mon Sep 17 00:00:00 2001 From: Ron Date: Wed, 21 Aug 2024 02:00:55 +0100 Subject: [PATCH] updating publish.yml --- .github/workflows/publish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6ac15b1..e3ecc2e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,8 +3,6 @@ name: Publish on: push: branches: [main] - pull_request: - branches: [main] release: types: [published] @@ -92,3 +90,11 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }} + + - name: Upload Release Assets + uses: actions/upload-release-asset@v3 + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./dist/* + asset_name: ${{ github.ref_name }}-package + asset_content_type: application/zip