Skip to content

Feature/2.0.0.0 preview2 #271

Feature/2.0.0.0 preview2

Feature/2.0.0.0 preview2 #271

name: documentation
on:
push:
tags:
- v*
- doc*
branches: [main]
pull_request:
branches: [main, "doc/*"]
jobs:
gh-release:
env:
DOC_FOLDER: "./docs"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Setup Node 🔧
uses: actions/setup-node@v1
with:
node-version: "16.x"
cache: "npm"
cache-dependency-path: ./docs/package-lock.json
path: $DOC_FOLDER
- name: Restore Dependencies 📦
working-directory: ${{ env.DOC_FOLDER }}
run: npm install --force
- name: Build ⚙️
working-directory: ${{ env.DOC_FOLDER }}
run: npm run build
- name: Publish to GitHub Pages ✉️
if: startsWith(github.ref, 'refs/tags/v')
working-directory: ${{ env.DOC_FOLDER }}
env:
USE_SSH: true
GIT_USER: git
run: |
git config --global user.email ${{secrets.OWNER_USER_EMAIL}}
git config --global user.name ${{secrets.OWNER_USER}}
npm run deploy