Skip to content

add new

add new #14

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: master
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20
- name: Install and Build
run: |
cd docs
yarn install
yarn build
- name: Commit and Push to /docs in master branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/genecell/PIASO.git
cp -R ./docs/build/* ./docs/
git add ./docs/
git commit -m "Deploy documentation" || echo "No changes to commit"
git push origin master