Skip to content

Build and Deploy on Release #3

Build and Deploy on Release

Build and Deploy on Release #3

Workflow file for this run

name: Build and Deploy on Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies
run: npm install
- name: Run build
run: npm run build
- name: Upload dist/nous-chat.js to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist/nous-chat.js
asset_name: nous-chat.js
asset_content_type: application/javascript