Skip to content

feat: v0.18.0 (#356) #26

feat: v0.18.0 (#356)

feat: v0.18.0 (#356) #26

name: Deploy Api Docs
on:
push:
paths:
- 'src/**/*.ts'
branches:
- main
jobs:
deploy:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Build api docs
run: npm run docs:api
- name: Update gh-pages branch
run: |
git config --global user.email "[email protected]"
git config --global user.name "Nandor Kraszlan"
rm -rf types/
cp -r ./api-docs/* ./
git add -f assets
git add -f classes
git add -f interfaces
git add -f functions
git add -f types
touch .nojekyll
git add -f .nojekyll
git add -f index.html
git add -f modules.html
git commit -m "Updates from ${{ github.ref }} - {{ github.sha }}" --no-verify
git fetch
git switch gh-pages
git merge origin/main
git push