[Release] Prepare release 0.10.4 #20
Workflow file for this run
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: Docs Version on Tag | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| version-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: { fetch-depth: 0 } | |
| - uses: actions/setup-node@v4 | |
| with: { node-version: '20' } | |
| - run: npm ci | |
| - name: Create docs version from tag | |
| run: | | |
| TAG="${GITHUB_REF_NAME#v}" # 'v0.3.1' -> '0.3.1' | |
| npm run docusaurus docs:version "$TAG" | |
| - name: Commit versioned docs | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "actions@users.noreply.github.com" | |
| git add -A | |
| git commit -m "docs: version ${GITHUB_REF_NAME}" || echo "No changes" | |
| git push | |