docs: define repository and chat language policy #138
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: Build And Publish Docs | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'dev/**' | ||
| - 'images/**' | ||
| - 'themes.json' | ||
| - 'gulpfile.js' | ||
| - 'gulpconfig.js' | ||
| - 'package.json' | ||
| - 'package-lock.json' | ||
| - 'dev/config/**' | ||
| workflow_dispatch | ||
| permissions: | ||
| contents: write | ||
| concurrency: | ||
| group: build-and-publish-${{ github.ref }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 24 | ||
| cache: npm | ||
| - run: npm ci | ||
| - run: npm test | ||
| - run: npm run build | ||
| - name: Commit generated docs | ||
| shell: bash | ||
| run: | | ||
| if git diff --quiet -- docs; then | ||
| echo "No generated docs changes to commit." | ||
| exit 0 | ||
| fi | ||
| git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
| git config --local user.name "github-actions[bot]" | ||
| git add docs | ||
| git commit -m "ci(build): compile and deploy" | ||
| git push | ||