Skip to content

update

update #16

Workflow file for this run

name: Release
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: write
checks: write
contents: write
deployments: write
issues: write
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
steps:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install Dependencies
run: |
yarn
- name: Build Project
run: |
yarn build
yarn next export
- name: Clone target repository
run: git clone https://github.com/GaiaNet-AI/gaianet-node.git
- name: Copy build files
run: |
cd gaianet-node
cp -r ../out/* ./dashboard/chatbot-ui/
- name: Commit and push changes
run: |
cd gaianet-node
git config --local user.email "840732889@qq.com"
git add .
git commit -m "Build and deploy chatbot-ui"
git push