Skip to content

Commit 41bc095

Browse files
committed
combine
1 parent 1a457d6 commit 41bc095

File tree

2 files changed

+21
-33
lines changed

2 files changed

+21
-33
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ jobs:
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

.github/workflows/publish.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)