Skip to content

Commit 32e85a7

Browse files
Publish to Pypi repo for deploy with 0.6.0. Should add 'if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes'.
1 parent 5585fd4 commit 32e85a7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/publish_pypi.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish to Guardrails Hub
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
setup:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Build & Deploy
14+
uses: guardrails-ai/guardrails/.github/actions/validator_pypi_publish@main
15+
with:
16+
guardrails_token: ${{ secrets.GR_GUARDRAILS_TOKEN }}
17+
validator_id: guardrails/detect_jailbreak

0 commit comments

Comments
 (0)