mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-20 02:18:13 +00:00
GH: minor fix in publish.yml
This commit is contained in:
1 parent
8b3b2fe433
commit
0b479d6936
1 file changed
+8
-1
@@ -4,6 +4,12 @@ on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: 'Tag name for the release (e.g., v0.1.0)'
|
||||
required: true
|
||||
default: 'v0.1.0'
|
||||
|
||||
env:
|
||||
# Set this to true manually in the GitHub workflow UI if you want to publish to PyPI
|
||||
@@ -17,7 +23,7 @@ jobs:
|
||||
|
||||
permissions:
|
||||
id-token: write # Required for trusted publishing
|
||||
contents: read
|
||||
contents: write # Required for updating artifact
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -35,6 +41,7 @@ jobs:
|
||||
if: env.PUBLISH_TO_PYPI == 'true'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
|
||||
files: |
|
||||
dist/*.tar.gz
|
||||
dist/*.whl
|
||||
|
||||
Reference in new issue
Block a user