feat: v0.18.0 (#356) #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |