Skip to content

Merge branch 'main' of github.com:GaiaNet-AI/docs #5

Merge branch 'main' of github.com:GaiaNet-AI/docs

Merge branch 'main' of github.com:GaiaNet-AI/docs #5

Workflow file for this run

name: to dapp
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: 20.x
- name: Install Dependencies
run: yarn
- name: Build Project
run: |
yarn build
- name: Push directory to another repository
if: ${{ github.event_name == 'push' }}
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }}
with:
source-directory: 'build'
destination-github-username: 'GaiaNet-AI'
destination-repository-name: 'gaianet-dapp'
target-directory: 'public/docs'
user-email: juyichen0413@foxmail.com
target-branch: main