chore(license): update LICENSE copyright and add README License section #56
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 to Github pages | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| submodules: 'true' | |
| - name: install dependencies | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: mdx check (served content only) | |
| run: | | |
| set -e | |
| for dir in docs blog src/pages \ | |
| template-docs/template-unreal/docs/docs \ | |
| template-docs/template-cpp17/docs/docs \ | |
| template-docs/template-cpp14/docs/docs \ | |
| template-docs/template-qt6/docs/docs \ | |
| template-docs/template-python/docs/docs \ | |
| template-docs/template-java/docs/docs; do | |
| echo "=== $dir ===" | |
| npx --yes docusaurus-mdx-checker --cwd "$dir" | |
| done | |
| - run: npm ci | |
| - run: npm run build | |
| - name: deploy to github pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./build |