Skip to content

Commit 0be7a72

Browse files
committed
Add publish wheel workflow.
1 parent 86ceaf7 commit 0be7a72

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/publish-wheel.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Wheel to PyPI
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version of the wheel to publish (format X.Y.Z - no "v"!).'
8+
required: true
9+
10+
jobs:
11+
publish-wheel:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.11'
18+
19+
- name: Download artifact
20+
uses: actions/download-artifact@v4
21+
with:
22+
name: nemoguardrails-${{ github.event.inputs.version }}.whl
23+
24+
- name: Publish package
25+
uses: pypa/gh-action-pypi-publish@release/v1
26+
with:
27+
verbose: true
28+
password: ${{ secrets.PYPI_API_TOKEN }}
29+
packages-dir: ./

0 commit comments

Comments
 (0)