Skip to content

Doc/remove doc and update readme (#413) #1

Doc/remove doc and update readme (#413)

Doc/remove doc and update readme (#413) #1

Workflow file for this run

name: Publish to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "documentation/**"
jobs:
merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: devmasx/[email protected]
with:
type: now
from_branch: main
target_branch: docs
github_token: ${{ github.token }}
generate-docs:
runs-on: ubuntu-latest
needs: merge
defaults:
run:
working-directory: documentation
steps:
- name: Checkout docs
uses: actions/checkout@v3
with:
ref: docs
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install Node Dependencies
run: yarn install
- name: Build project
run: |
yarn docs:build
touch ../docs/.nojekyll
- name: Config git user
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: Commit changes
run: |
cd ..
echo "!docs/" >> .gitignore
git add docs -f
git commit -m'docs: updated docs'
git push --force