Skip to content

Commit 45e90fb

Browse files
committed
restore the condistion to build & update pacakge when merge
1 parent 0eb4e12 commit 45e90fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ jobs:
984984
985985
- name: Build the release package
986986
id: pack_artifacts
987-
if: ${{ ( github.event_name == 'pull_request' && github.base_ref == 'master' ) }}
987+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
988988
run: |
989989
echo "cp oneAPI running time dll files in ${{ env.ONEAPI_ROOT }} to ./build/bin"
990990
@@ -1009,7 +1009,7 @@ jobs:
10091009
7z a llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip ./build/bin/*
10101010
10111011
- name: Upload the release package
1012-
if: ${{ ( github.event_name == 'pull_request' && github.base_ref == 'master' ) }}
1012+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
10131013
uses: actions/upload-artifact@v4
10141014
with:
10151015
path: llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip

0 commit comments

Comments
 (0)