File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,25 @@ release-build-macos-remote tag:
30
30
release-upload-distributions token datetime tag :
31
31
cargo run --release -- upload-release-distributions --token {{ token}} --datetime {{ datetime }} --tag {{ tag}} --dist dist
32
32
33
+ release-set-latest-release tag :
34
+ #!/usr/bin/env bash
35
+ set -euxo pipefail
36
+
37
+ git switch latest-release
38
+ cat << EOF > latest-release.json
39
+ {
40
+ " version" : 1 ,
41
+ " tag" : " {{ tag}} " ,
42
+ " release_url" : " https://github.com/indygreg/python-build-standalone/releases/tag/{{ tag}} " ,
43
+ " asset_url_prefix" : " https://github.com/indygreg/python-build-standalone/releases/download/{{ tag}} "
44
+ }
45
+ EOF
46
+
47
+ git commit -a -m ' set latest release to {{ tag}} '
48
+ git switch main
49
+
50
+ git push origin latest-release
51
+
33
52
# Perform a release.
34
53
release token commit tag :
35
54
#!/ bin/ bash
@@ -40,3 +59,4 @@ release token commit tag:
40
59
just release-build-macos-remote {{ tag}}
41
60
datetime =$(ls dist/ cpython-3.10 .*-x86 _64 -unknown-linux-gnu-install_only-*.tar.gz | awk -F- ' {print $8}' | awk -F. ' {print $1}' )
42
61
just release-upload-distributions {{ token}} ${datetime } {{ tag}}
62
+ just release-set-latest-release {{ tag}}
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ https://github.com/indygreg/python-build-standalone/releases.
12
12
Simply go to that page and find the latest release along with
13
13
its release notes.
14
14
15
+ Machines can find the latest release by querying the GitHub releases
16
+ API. Alternatively, a JSON file publishing metadata about the latest
17
+ release can be fetched from
18
+ https://raw.githubusercontent.com/indygreg/python-build-standalone/latest-release/latest-release.json.
19
+ The JSON format is simple and hopefully self-descriptive.
20
+
15
21
Published distributions vary by their:
16
22
17
23
* Python version
You can’t perform that action at this time.
0 commit comments