7575
7676 - name : Get commit hash
7777 id : commit
78- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
78+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main ' ) || github.event.inputs.create_release == 'true' }}
7979 uses : pr-mpt/actions-commit-hash@v2
8080
8181 - name : Fetch system info
@@ -88,12 +88,12 @@ jobs:
8888
8989 - name : Pack artifacts
9090 id : pack_artifacts
91- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
91+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main ' ) || github.event.inputs.create_release == 'true' }}
9292 run : |
9393 zip -j stable-diffusion-${{ 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/libsd-abi.so
9494
9595 - name : Upload artifacts
96- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
96+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main ' ) || github.event.inputs.create_release == 'true' }}
9797 uses : actions/upload-artifact@v3
9898 with :
9999 path : |
@@ -127,7 +127,7 @@ jobs:
127127
128128 - name : Get commit hash
129129 id : commit
130- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
130+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main ' ) || github.event.inputs.create_release == 'true' }}
131131 uses : pr-mpt/actions-commit-hash@v2
132132
133133 - name : Fetch system info
@@ -140,12 +140,12 @@ jobs:
140140
141141 - name : Pack artifacts
142142 id : pack_artifacts
143- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
143+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main ' ) || github.event.inputs.create_release == 'true' }}
144144 run : |
145145 zip -j stable-diffusion-${{ 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/libsd-abi.dylib
146146
147147 - name : Upload artifacts
148- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
148+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main ' ) || github.event.inputs.create_release == 'true' }}
149149 uses : actions/upload-artifact@v3
150150 with :
151151 path : |
@@ -196,24 +196,24 @@ jobs:
196196
197197 - name : Get commit hash
198198 id : commit
199- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
199+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main ' ) || github.event.inputs.create_release == 'true' }}
200200 uses : pr-mpt/actions-commit-hash@v2
201201
202202 - name : Pack artifacts
203203 id : pack_artifacts
204- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
204+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main ' ) || github.event.inputs.create_release == 'true' }}
205205 run : |
206206 7z a stable-diffusion-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip .\build\bin\Release\sd-abi.dll
207207
208208 - name : Upload artifacts
209- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
209+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main ' ) || github.event.inputs.create_release == 'true' }}
210210 uses : actions/upload-artifact@v3
211211 with :
212212 path : |
213213 stable-diffusion-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip
214214
215215 release :
216- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
216+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main ' ) || github.event.inputs.create_release == 'true' }}
217217
218218 runs-on : ubuntu-latest
219219
0 commit comments