Skip to content

Commit

Permalink
ci: add uptriever job
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Jul 25, 2024
1 parent 5e75fde commit e1d52c5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/push-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Push Stable
on:
push:
tags:
- v1.2.*
- v1.3.*
- v1.4.*
- v1.5.*
workflow_dispatch:

jobs:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/trieve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Upload to Trieve

on:
push:
tags:
- v1.3.*
- v1.4.*
- v1.5.*
workflow_dispatch:

jobs:
uptrieve:
steps:
- if: ${{ github.event_name == 'workflow_dispatch' }}
uses: anycable/github-actions/.github/workflows/uptrieve.yml@master
secrets:
api_key: ${{ secrets.TRIEVE_API_KEY }}
dataset: ${{ secrets.TRIEVE_DATASET }}
- if: ${{ contains(github.ref, 'refs/tags/v') }}
id: version
run: |
echo ::set-output name=VERSION_TAG::$(echo ${GITHUB_REF#refs/tags/} | cut -d'.' -f1,2)
echo ::set-output name=VERSION_PREFIX::$(echo ${GITHUB_REF#refs/tags/} | awk -F. '{print $1 "-" $2}')
- if: ${{ contains(github.ref, 'refs/tags/v') }}
uses: anycable/github-actions/.github/workflows/uptrieve.yml@master
secrets:
api_key: ${{ secrets.TRIEVE_API_KEY }}
dataset: ${{ secrets.TRIEVE_DATASET }}
env: VERSION_TAG=${{ steps.version.outputs.VERSION_TAG }} VERSION_PREFIX=${{ steps.version.outputs.VERSION_PREFIX }}
- if: ${{ contains(github.ref, 'refs/tags/v') && steps.version.outputs.VERSION_TAG == 'v1.5' }}
uses: anycable/github-actions/.github/workflows/uptrieve.yml@master
secrets:
api_key: ${{ secrets.TRIEVE_API_KEY }}
dataset: ${{ secrets.TRIEVE_DATASET }}
env: VERSION_TAG=latest VERSION_PREFIX=

0 comments on commit e1d52c5

Please sign in to comment.