File tree Expand file tree Collapse file tree 2 files changed +21
-33
lines changed
Expand file tree Collapse file tree 2 files changed +21
-33
lines changed Original file line number Diff line number Diff line change 6868 - name : Run promptfoo tests
6969 run : |
7070 promptfoo eval --config promptfoo.yaml
71- env :
72- XAI_API_KEY : ${{ secrets.XAI_API_KEY }}
7371
7472 lint :
7573 runs-on : ubuntu-latest
@@ -134,3 +132,24 @@ jobs:
134132 with :
135133 name : dist
136134 path : dist/
135+
136+ publish :
137+ runs-on : ubuntu-latest
138+ needs : [build, test, promptfoo, lint]
139+ if : startsWith(github.ref, 'refs/tags/') && github.event_name == 'push'
140+
141+ steps :
142+ - uses : actions/checkout@v4
143+
144+ - name : Download build artifacts
145+ uses : actions/download-artifact@v4
146+ with :
147+ name : dist
148+ path : dist/
149+
150+ - name : Publish to PyPI
151+ uses : pypa/gh-action-pypi-publish@release/v1
152+ with :
153+ password : ${{ secrets.PYPI_API_TOKEN }}
154+ skip-existing : true
155+ verbose : true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments