Skip to content

Commit 3ee8fd5

Browse files
committed
Update release workflow
1 parent b801400 commit 3ee8fd5

File tree

2 files changed

+6
-30
lines changed

2 files changed

+6
-30
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
name: Release
2626
env:
2727
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
runs-on: depot-ubuntu-24.04-8
28+
runs-on: ubuntu-24.04
2929

3030
permissions:
3131
contents: write
@@ -97,27 +97,3 @@ jobs:
9797
subject-path: |
9898
dist/*.tar.gz
9999
dist/*.tar.zst
100-
101-
- name: Publish to Astral mirror
102-
if: ${{ github.event.inputs.dry-run == 'false' }}
103-
env:
104-
AWS_ACCESS_KEY_ID: ${{ secrets.MIRROR_R2_ACCESS_KEY_ID }}
105-
AWS_SECRET_ACCESS_KEY: ${{ secrets.MIRROR_R2_SECRET_ACCESS_KEY }}
106-
AWS_ENDPOINT_URL: https://${{ secrets.MIRROR_R2_CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com
107-
AWS_DEFAULT_REGION: auto
108-
R2_BUCKET: ${{ secrets.MIRROR_R2_BUCKET_NAME }}
109-
PROJECT: python-build-standalone
110-
VERSION: ${{ github.event.inputs.tag }}
111-
run: |
112-
just release-upload-mirror \
113-
${R2_BUCKET} \
114-
github/${PROJECT}/releases/download/${VERSION}/ \
115-
${VERSION}
116-
117-
publish-versions:
118-
needs: release
119-
if: ${{ github.event.inputs.dry-run == 'false' }}
120-
uses: ./.github/workflows/publish-versions.yml
121-
with:
122-
tag: ${{ github.event.inputs.tag }}
123-
secrets: inherit

Justfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ cat-python-json archive:
2828
# Download release artifacts from GitHub Actions
2929
release-download-distributions token commit:
3030
mkdir -p dist
31-
cargo run --release -- fetch-release-distributions --token {{token}} --commit {{commit}} --dest dist
31+
cargo run --release -- fetch-release-distributions --token {{token}} --commit {{commit}} --dest dist --org fox-it --repo python-build-pystandalone
3232

3333
# Upload release artifacts to a GitHub release.
3434
release-upload-distributions token datetime tag:
35-
cargo run --release -- upload-release-distributions --token {{token}} --datetime {{datetime}} --tag {{tag}} --dist dist
35+
cargo run --release -- upload-release-distributions --token {{token}} --datetime {{datetime}} --tag {{tag}} --dist dist --org fox-it --repo python-build-pystandalone
3636

3737
# "Upload" release artifacts to a GitHub release in dry-run mode (skip upload).
3838
release-upload-distributions-dry-run token datetime tag:
39-
cargo run --release -- upload-release-distributions --token {{token}} --datetime {{datetime}} --tag {{tag}} --dist dist -n
39+
cargo run --release -- upload-release-distributions --token {{token}} --datetime {{datetime}} --tag {{tag}} --dist dist --org fox-it --repo python-build-pystandalone -n
4040

4141
# Promote a tag to "latest" by pushing to the `latest-release` branch.
4242
release-set-latest-release tag:
@@ -51,8 +51,8 @@ release-set-latest-release tag:
5151
{
5252
"version": 1,
5353
"tag": "{{tag}}",
54-
"release_url": "https://github.com/astral-sh/python-build-standalone/releases/tag/{{tag}}",
55-
"asset_url_prefix": "https://github.com/astral-sh/python-build-standalone/releases/download/{{tag}}"
54+
"release_url": "https://github.com/fox-it/python-build-pystandalone/releases/tag/{{tag}}",
55+
"asset_url_prefix": "https://github.com/fox-it/python-build-pystandalone/releases/download/{{tag}}"
5656
}
5757
EOF
5858

0 commit comments

Comments
 (0)