💭 python-build-standalone/.github/workflows/release.yml at main ... =================================================================== !https://github.com/astral-sh/python-build-standalone/blob/main/.github/workflows/release.yml Date: February 17, 2025 ![https://github.com/astral-sh/python-build-standalone/blob/main/.github/workflows/release.yml](/static/https://github.com/astral-sh/python-build-standalone/blob/main/.github/workflows/release.yml) Astral uses just in CI, kinda cool to stumble into this setup in the wild. ``` bash run: just release-run ${{ secrets.GITHUB_TOKEN }} ${{ github.event.inputs.sha }} ${{ github.event.inputs.tag }} ``` And her is the accompanying justfile. you can see how it accepts arguments, and starts calling out to other just recipes. ``` justfile release-run token commit tag: #!/bin/bash set -eo pipefail rm -rf dist just release-download-distributions {{token}} {{commit}} datetime=$(ls dist/cpython-3.10.*-x86_64-unknown-linux-gnu-install_only-*.tar.gz | awk -F- '{print $8}' | awk -F. '{print $1}') just release-upload-distributions {{token}} ${datetime} {{tag}} just release-set-latest-release {{tag}} ``` !!! note This post is a thought [1]. It's a short note that I make about someone else's content online #thoughts [2] References: [1]: /thoughts/ [2]: /tags/thoughts/