Skip to content

Commit

Permalink
updating publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnnnnnnnnnnnn committed Aug 21, 2024
1 parent 590aeb5 commit 84712d8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Publish
on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]

Expand Down Expand Up @@ -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

0 comments on commit 84712d8

Please sign in to comment.