---
title: "💭 python-build-standalone/.github/workflows/release.yml at main ..."
description: "!https://github.com/astral-sh/python-build-standalone/blob/main/.github/workflows/release.yml"
date: 2025-02-17
published: true
tags:
  - just
  - thought
template: link
---


![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 <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
