feat: 0.19.0 (#358) #28
This file contains hidden or 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@v5 | |
| - uses: actions/setup-node@v5 | |
| 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 "nandor.kraszlan@gmail.com" | |
| 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 fetch | |
| git switch gh-pages | |
| git commit -m "Updates from ${{ github.ref }} - {{ github.sha }}" --no-verify | |
| git merge origin/main | |
| git push |