From 6da73fc4ecee3a7b7316c1fb286735c76677cedb Mon Sep 17 00:00:00 2001 From: Joseph Catrambone Date: Fri, 6 Dec 2024 12:18:48 -0800 Subject: [PATCH] Also, push new version to pypi on tag. --- .github/workflows/publish_pypi.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/publish_pypi.yml diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml new file mode 100644 index 0000000..5bbc17c --- /dev/null +++ b/.github/workflows/publish_pypi.yml @@ -0,0 +1,18 @@ +name: Publish to Guardrails Hub + +on: + workflow_dispatch: + push: + # Publish when new releases are tagged. + tags: + - '*' + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Build & Deploy + uses: guardrails-ai/guardrails/.github/actions/validator_pypi_publish@main + with: + guardrails_token: ${{ secrets.GR_GUARDRAILS_TOKEN }} + validator_id: guardrails/bias_check \ No newline at end of file