Skip to content

Commit

Permalink
Add workflow to trigger preview package release (#5631)
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza authored Aug 25, 2023
1 parent 8342b6a commit 444edce
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pypi_release_preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Trigger preview release

on:
push:
branches:
- main
paths:
- "haystack/preview/**.py"

jobs:
release-on-pypi:
runs-on: ubuntu-latest

steps:
- name: Trigger preview release
env:
HAYSTACK_BOT_REPO_DISPATCH_PA_TOKEN: ${{ secrets.HAYSTACK_BOT_REPO_DISPATCH_PA_TOKEN }}
run: |
curl -L \
-X POST \
-H "Authorization: Bearer $HAYSTACK_BOT_REPO_DISPATCH_PA_TOKEN" \
https://api.github.com/repos/deepset-ai/haystack-preview-package/dispatches \
-d '{"event_type":"preview_release"}'

0 comments on commit 444edce

Please sign in to comment.