Skip to content

Commit 633311c

Browse files
committed
fix darwin and linux pack artifacts
1 parent aec9030 commit 633311c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ jobs:
5959
6060
- name: Pack artifacts
6161
id: pack_artifacts
62-
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || github.event.inputs.create_release == 'true' }}
62+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
6363
run: |
6464
cp ggml/LICENSE ./build/bin/ggml.txt
6565
cp LICENSE ./build/bin/stable-diffusion.cpp.txt
6666
zip -r sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ steps.system-info.outputs.OS_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}.zip ./build/bin/*
6767
6868
- name: Upload artifacts
69-
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || github.event.inputs.create_release == 'true' }}
69+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
7070
uses: actions/upload-artifact@v3
7171
with:
7272
path: |
@@ -112,14 +112,14 @@ jobs:
112112
113113
- name: Pack artifacts
114114
id: pack_artifacts
115-
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || github.event.inputs.create_release == 'true' }}
115+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
116116
run: |
117117
cp ggml/LICENSE ./build/bin/ggml.txt
118118
cp LICENSE ./build/bin/stable-diffusion.cpp.txt
119119
zip -r sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ steps.system-info.outputs.OS_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}.zip ./build/bin/*
120120
121121
- name: Upload artifacts
122-
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || github.event.inputs.create_release == 'true' }}
122+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
123123
uses: actions/upload-artifact@v3
124124
with:
125125
path: |

0 commit comments

Comments
 (0)