Switch from render
to streamUI
(AI SDK 3.1)
#17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Preview Deployment | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
concurrency: | |
group: preview-deployment | |
cancel-in-progress: false | |
jobs: | |
deploy-preview: | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
runs-on: ubuntu-latest | |
environment: | |
name: AWS Preview | |
url: https://ai-demo-preview.mfng.strict.software | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_HANDLER_VERIFY_HEADER: ${{ secrets.AWS_HANDLER_VERIFY_HEADER }} | |
AWS_REGION: ${{ vars.AWS_REGION }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
GOOGLE_SEARCH_API_KEY: ${{ secrets.GOOGLE_SEARCH_API_KEY }} | |
GOOGLE_SEARCH_SEARCH_ENGINE_ID: | |
${{ secrets.GOOGLE_SEARCH_SEARCH_ENGINE_ID }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }} | |
UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
cache: 'npm' | |
- name: Install | |
run: npm ci --no-audit --no-fund | |
- name: Build | |
run: npm run build | |
- name: Deploy Preview | |
run: npm run deploy:preview -- --require-approval never |