Skip to content

Commit

Permalink
feature: release beta-component CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Jan 14, 2025
1 parent fe3f3bf commit ebff6ce
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/push-beta-component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Update Beta Component

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- "clients/search-component/**"

jobs:
build-test:
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Download current production api.json
working-directory: ./clients/ts-sdk
run: wget https://api.trieve.ai/api-docs/openapi.json

- name: Use Node LTS ✨
uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: https://registry.npmjs.org
cache: yarn

- name: Build the TS SDK
working-directory: ./clients/ts-sdk
run: yarn && yarn build:clean

- name: Install dependencies 📦️
working-directory: ./clients/search-component/
run: yarn --frozen-lockfile

- name: Build 🔨
env:
BUNNY_API_KEY: ${{ secrets.BUNNY_API_KEY }}
working-directory: ./clients/search-component/
run: yarn build:clean

- name: Push to bunny 🚀
env:
BUNNY_API_KEY: ${{ secrets.BUNNY_API_KEY }}
working-directory: ./clients/search-component/
run: yarn push:cdn:beta

0 comments on commit ebff6ce

Please sign in to comment.