Bump release version to 1.12.115 #40
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 candidate | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| actions: read | |
| contents: write | |
| concurrency: | |
| group: release-candidate-main | |
| cancel-in-progress: true | |
| jobs: | |
| artifacts: | |
| name: Prepare, build, and smoke-test release artifacts | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.RELEASE_GH_TOKEN }} | |
| - id: version | |
| uses: ArchiveBox/monorepo/.github/actions/prepare-release-version@main | |
| with: | |
| package: abxpkg | |
| branch: main | |
| tag-prefix: v | |
| version-scheme: patch | |
| - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8 | |
| with: | |
| version: "0.10.6" | |
| enable-cache: false | |
| - name: Build and smoke-test the wheel | |
| if: steps.version.outputs.action == 'ready' || steps.version.outputs.action == 'reserved' | |
| shell: bash | |
| run: | | |
| set -Eeuo pipefail | |
| uv build --out-dir dist | |
| uv publish --dry-run --trusted-publishing never dist/*.whl dist/*.tar.gz | |
| wheel=(dist/abxpkg-*.whl) | |
| uv sync --locked --no-cache --no-sources --no-dev --no-install-project | |
| uv pip install --no-cache --no-deps --python .venv/bin/python "${wheel[0]}" | |
| smoke_dir="$(mktemp -d)" | |
| (cd "$smoke_dir" && VIRTUAL_ENV="$GITHUB_WORKSPACE/.venv" uv run --no-cache --active --no-project python -c 'import abxpkg') | |
| (cd "$smoke_dir" && VIRTUAL_ENV="$GITHUB_WORKSPACE/.venv" uv run --no-cache --active --no-project abxpkg --help >/dev/null) | |
| uv run --no-cache --no-project python - <<'PY' > dist/SHA256SUMS | |
| from hashlib import sha256 | |
| from pathlib import Path | |
| for path in sorted((*Path("dist").glob("*.whl"), *Path("dist").glob("*.tar.gz"))): | |
| print(f"{sha256(path.read_bytes()).hexdigest()} {path.name}") | |
| PY | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| if: steps.version.outputs.action == 'ready' || steps.version.outputs.action == 'reserved' | |
| with: | |
| name: abxpkg-dist-${{ github.sha }} | |
| path: dist/* | |
| if-no-files-found: error | |
| retention-days: 14 |