Skip to content

Commit

Permalink
Merge pull request #2 from GaiaNet-AI/feature-ui
Browse files Browse the repository at this point in the history
Feature UI
  • Loading branch information
JYC0413 authored May 6, 2024
2 parents 625193c + 037eac6 commit 10aa1d3
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
55 changes: 55 additions & 0 deletions .github/workflows/exportAndPush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v4
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
mv ../out/index.html ./dashboard/chatbot-ui
cp -r ../out/* ./dashboard
- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
cd gaianet-node
git remote set-url --push origin https://JYC0413:$GITHUB_TOKEN@github.com/GaiaNet-AI/gaianet-node.git
git config --local user.email "juyichen0413@foxmail.com"
git config --global user.name "JYC0413"
git add .
git commit -m "Build and deploy chatbot-ui"
git push
2 changes: 1 addition & 1 deletion pages/api/home/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ const Home = ({
name="viewport"
content="height=device-height ,width=device-width, initial-scale=1, user-scalable=no"
/>
<link rel="icon" href="/favicon.png"/>
<link rel="icon" href="./favicon.png"/>
</Head>
{selectedConversation && (
<main
Expand Down

0 comments on commit 10aa1d3

Please sign in to comment.