Skip to content

Deployment

Deployment #12

Workflow file for this run

name: Deployment
on:
workflow_dispatch
# push:
# branches:
# - main
jobs:
deploy:
runs-on: ubuntu-latest
environment: AWS
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
run: npm run deploy -- --require-approval never