-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
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-dapp.git | ||
|
||
- name: Copy build files | ||
run: | | ||
cd gaianet-dapp | ||
mv ../out ./src/chatbot-ui | ||
- 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-dapp.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 |
File renamed without changes.