docs: public-share readiness, dark-mode flythrough, CI improvements #7
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: Release | |
| on: | |
| pull_request: | |
| branches: [main] | |
| types: [closed] | |
| jobs: | |
| release: | |
| if: github.event.pull_request.merged == true | |
| runs-on: ubuntu-latest | |
| concurrency: release | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: main | |
| - name: Generate timestamp tag | |
| id: version | |
| run: | | |
| BASE="v$(date -u +%Y.%m.%d)" | |
| TAG="$BASE" | |
| N=1 | |
| while git ls-remote --tags origin "$TAG" | grep -q "$TAG"; do | |
| TAG="${BASE}.${N}" | |
| N=$((N + 1)) | |
| done | |
| echo "tag=$TAG" >> $GITHUB_OUTPUT | |
| - name: Create tag and GitHub release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| TAG="${{ steps.version.outputs.tag }}" | |
| git tag "$TAG" | |
| git push origin "$TAG" | |
| gh release create "$TAG" --title "$TAG" --generate-notes |