Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 9154635

Browse files
committed
add release tag flow
1 parent 122ea21 commit 9154635

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build-wheel.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
push:
99
branches:
1010
- main
11+
release:
12+
types: [created, published]
1113
schedule:
1214
- cron: '0 0 * * *'
1315

@@ -20,11 +22,11 @@ concurrency:
2022
cancel-in-progress: true
2123

2224
# if not dev or release, will create a nightly build
23-
# everything is pushed to internal unless created through a nightly scheduled cron job
25+
# everything is pushed to internal unless created through a nightly scheduled cron job which creates the build or
2426
# missing release tag workflow/needs to be added in
2527
env:
26-
INTERNAL: ${{ github.event_name != 'schedule' }}
27-
RELEASE: ${{ github.base_ref == 'refs/heads/release/[0-9]+.[0-9]+' && github.event_name == 'pull_request'}}
28+
INTERNAL: ${{ github.event_name != 'schedule' && github.event_name != 'release'}}
29+
RELEASE: ${{ github.event_name =='release' || (github.base_ref == 'release/**' && github.event_name == 'pull_request')}}
2830
DEV: ${{ github.base_ref == 'main' && github.event_name == 'pull_request'}}
2931
NAME: ${{ github.event.number }}
3032

0 commit comments

Comments
 (0)