improve handling of output sanitization #5
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: Build and deploy | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: self-hosted | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: yarn for AI compiler | |
run: yarn | |
- name: compile using AI | |
run: yarn build | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
- name: Copy built files | |
run: cp -r dist/* /opt/nie/ | |
- name: yarn install built files | |
run: yarn --production | |
working-directory: /opt/nie | |
- name: Restart the service | |
run: sudo systemctl restart nie.service |