Skip to content

Commit 0da26d9

Browse files
authored
Start publishing final releases using new workflow (#607)
1 parent 23e5c01 commit 0da26d9

File tree

3 files changed

+17
-98
lines changed

3 files changed

+17
-98
lines changed

.github/workflows/aws/upload_final_index.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
wheels_dict[torch_version.replace('2.5.0', '2.5.1')].append(wheel)
5151
if '2.7.0' in torch_version:
5252
wheels_dict[torch_version.replace('2.7.0', '2.7.1')].append(wheel)
53+
if '2.9.0' in torch_version:
54+
wheels_dict[torch_version.replace('2.9.0', '2.9.1')].append(wheel)
5355

5456
html = '<!DOCTYPE html>\n<html>\n<body>\n{}\n</body>\n</html>'
5557
href = '<a href="{}">{}</a><br/>'

.github/workflows/building.yml

Lines changed: 0 additions & 92 deletions
This file was deleted.
Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
name: Build Nightly Wheels
1+
name: Release Wheels
22

33
on: # yamllint disable-line rule:truthy
44
workflow_dispatch:
5+
inputs:
6+
release-type:
7+
description: 'Release type'
8+
required: true
9+
type: choice
10+
options:
11+
- nightly
12+
- final
13+
default: nightly
514
schedule:
615
- cron: "0 4 * * *" # Everyday at 4:00am UTC/8:00pm PST
716

@@ -48,7 +57,7 @@ jobs:
4857
uses: ./.github/workflows/_build_linux.yml
4958
with:
5059
test-matrix: ${{ needs.trigger.outputs.matrix-linux }}
51-
release-type: nightly
60+
release-type: ${{ inputs.release-type || 'nightly' }}
5261
docker-hub-username: ${{ vars.DOCKERHUB_USERNAME }}
5362
secrets:
5463
docker-hub-token: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -60,7 +69,7 @@ jobs:
6069
uses: ./.github/workflows/_build_macos.yml
6170
with:
6271
test-matrix: ${{ needs.trigger.outputs.matrix-macos }}
63-
release-type: nightly
72+
release-type: ${{ inputs.release-type || 'nightly' }}
6473
secrets:
6574
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
6675
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -70,13 +79,13 @@ jobs:
7079
uses: ./.github/workflows/_build_windows.yml
7180
with:
7281
test-matrix: ${{ needs.trigger.outputs.matrix-windows }}
73-
release-type: nightly
82+
release-type: ${{ inputs.release-type || 'nightly' }}
7483
secrets: inherit
7584

7685
index:
77-
if: always()
86+
if: ${{ always() && (inputs.release-type || 'nightly') == 'nightly' }}
7887
needs: [linux, macos, windows]
7988
uses: ./.github/workflows/_upload_index.yml
8089
with:
81-
release-type: nightly
90+
release-type: ${{ inputs.release-type || 'nightly' }}
8291
secrets: inherit

0 commit comments

Comments
 (0)