Daniel Hiltgen
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
16 additions and
0 deletions
-
.github/workflows/release.yaml
|
|
|
@ -426,6 +426,22 @@ jobs: |
|
|
|
docker buildx imagetools inspect ollama/ollama:${{ steps.metadata.outputs.version }} |
|
|
|
working-directory: ${{ runner.temp }} |
|
|
|
|
|
|
|
# Trigger downstream release process |
|
|
|
trigger: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
environment: release |
|
|
|
needs: [darwin-build, windows-build, windows-depends] |
|
|
|
steps: |
|
|
|
- name: Trigger downstream release process |
|
|
|
run: | |
|
|
|
curl -L \ |
|
|
|
-X POST \ |
|
|
|
-H "Accept: application/vnd.github+json" \ |
|
|
|
-H "Authorization: Bearer ${{ secrets.RELEASE_TOKEN }}" \ |
|
|
|
-H "X-GitHub-Api-Version: 2022-11-28" \ |
|
|
|
https://api.github.com/repos/ollama/${{ vars.RELEASE_REPO }}/dispatches \ |
|
|
|
-d "{\"event_type\": \"trigger-workflow\", \"client_payload\": {\"run_id\": \"${GITHUB_RUN_ID}\", \"version\": \"${GITHUB_REF_NAME#v}\"}}" |
|
|
|
|
|
|
|
# Aggregate all the assets and ship a release |
|
|
|
release: |
|
|
|
needs: [darwin-sign, windows-sign, linux-build] |
|
|
|
|