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

Commit 1d30aea

Browse files
committed
chore(ci): Update conditional step and body content
1 parent d09bae4 commit 1d30aea

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
push:
1111
branches:
1212
- master
13-
- 35-add-github-action-for-nitro-build
1413
paths: ['.github/workflows/**', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu']
1514
pull_request:
1615
types: [opened, synchronize, reopened]
@@ -63,14 +62,13 @@ jobs:
6362
zip -r nitro.zip nitro
6463
6564
- name: Upload binaries to release
66-
# if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
65+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
6766
uses: svenstaro/upload-release-action@v2
6867
with:
6968
repo_token: ${{ secrets.GITHUB_TOKEN }}
7069
file: nitro.zip
7170
asset_name: nitro-${{ steps.extract_commit_id.outputs.sha_short }}-linux-amd64.zip
72-
body: ${{ steps.extract_branch.outputs.branch }}-${{ steps.extract_commit_id.outputs.sha_short }}
73-
overwrite: true
71+
tag: ${{ steps.extract_branch.outputs.branch }}-${{ steps.extract_commit_id.outputs.sha_short }}
7472

7573
ubuntu-amd64-cuda-build:
7674
runs-on: linux-gpu
@@ -116,14 +114,13 @@ jobs:
116114
zip -r nitro.zip nitro
117115
118116
- name: Upload binaries to release
119-
# if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
117+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
120118
uses: svenstaro/upload-release-action@v2
121119
with:
122120
repo_token: ${{ secrets.GITHUB_TOKEN }}
123121
file: nitro.zip
124122
asset_name: nitro-${{ steps.extract_commit_id.outputs.sha_short }}-linux-amd64-cuda.zip
125-
body: ${{ steps.extract_branch.outputs.branch }}-${{ steps.extract_commit_id.outputs.sha_short }}
126-
overwrite: true
123+
tag: ${{ steps.extract_branch.outputs.branch }}-${{ steps.extract_commit_id.outputs.sha_short }}
127124

128125
macOS-M-build:
129126
runs-on: mac-silicon
@@ -171,14 +168,13 @@ jobs:
171168
zip -r nitro.zip nitro
172169
173170
- name: Upload binaries to release
174-
# if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
171+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
175172
uses: svenstaro/upload-release-action@v2
176173
with:
177174
repo_token: ${{ secrets.GITHUB_TOKEN }}
178175
file: nitro.zip
179176
asset_name: nitro-${{ steps.extract_commit_id.outputs.sha_short }}-mac-arm64.zip
180-
body: ${{ steps.extract_branch.outputs.branch }}-${{ steps.extract_commit_id.outputs.sha_short }}
181-
overwrite: true
177+
tag: ${{ steps.extract_branch.outputs.branch }}-${{ steps.extract_commit_id.outputs.sha_short }}
182178

183179
macOS-Intel-build:
184180
runs-on: macos-latest
@@ -224,11 +220,10 @@ jobs:
224220
zip -r nitro.zip nitro
225221
226222
- name: Upload binaries to release
227-
# if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
223+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
228224
uses: svenstaro/upload-release-action@v2
229225
with:
230226
repo_token: ${{ secrets.GITHUB_TOKEN }}
231227
file: nitro.zip
232228
asset_name: nitro-${{ steps.extract_commit_id.outputs.sha_short }}-mac-amd64.zip.zip
233-
body: ${{ steps.extract_branch.outputs.branch }}-${{ steps.extract_commit_id.outputs.sha_short }}
234-
overwrite: true
229+
tag: ${{ steps.extract_branch.outputs.branch }}-${{ steps.extract_commit_id.outputs.sha_short }}

0 commit comments

Comments
 (0)