@@ -91,23 +91,25 @@ jobs:
9191 needs : [build-windows]
9292 permissions :
9393 contents : write
94- if : ${{ github.event_name != 'pull_request' }}
9594 steps :
9695 - uses : actions/checkout@v4
9796 - name : Download config repo
9897 uses : actions/checkout@v4
98+ if : ${{ github.event_name != 'pull_request' }}
9999 with :
100100 repository : TheTrackerCouncil/SMZ3CasConfigs
101101 path : configs
102102 ref : main
103103 - name : Download sprite repo
104104 uses : actions/checkout@v4
105+ if : ${{ github.event_name != 'pull_request' }}
105106 with :
106107 repository : TheTrackerCouncil/SMZ3CasSprites
107108 path : sprites
108109 ref : main
109110 - name : Download tracker sprite repo
110111 uses : actions/checkout@v4
112+ if : ${{ github.event_name != 'pull_request' }}
111113 with :
112114 repository : TheTrackerCouncil/TrackerSprites
113115 path : trackersprites
@@ -126,9 +128,11 @@ jobs:
126128 Remove-Item -LiteralPath "trackersprites/.git" -Force -Recurse
127129 - name : Setup .NET
128130 uses : actions/setup-dotnet@v4
131+ if : ${{ github.event_name != 'pull_request' }}
129132 with :
130133 dotnet-version : 8.0.x
131134 - name : Update VersionOverride in source file
135+ if : ${{ github.event_name != 'pull_request' }}
132136 run : |
133137 pwd
134138 VERSION="${{ needs.build-windows.outputs.version-number }}"
@@ -139,12 +143,15 @@ jobs:
139143 echo "Updated VersionOverride to: ${VERSION}"
140144 - name : Install PupNet
141145 run : dotnet tool install -g KuiperZone.PupNet
146+ if : ${{ github.event_name != 'pull_request' }}
142147 - name : Download AppImageTool
148+ if : ${{ github.event_name != 'pull_request' }}
143149 run : |
144150 wget -P "$HOME/.local/bin" "https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage"
145151 chmod +x "$HOME/.local/bin/appimagetool-x86_64.AppImage"
146152 appimagetool-x86_64.AppImage --version
147153 - name : Run PupNet
154+ if : ${{ github.event_name != 'pull_request' }}
148155 run : |
149156 chmod +x setup/AppImageBundleFiles.sh
150157 pupnet setup/AppImage.pupnet.conf --kind appimage -y
@@ -157,23 +164,25 @@ jobs:
157164
158165 build-mac :
159166 runs-on : macos-latest
160- if : ${{ github.event_name != 'pull_request' }}
161167 steps :
162168 - uses : actions/checkout@v4
163169 - name : Download config repo
164170 uses : actions/checkout@v4
171+ if : ${{ github.event_name != 'pull_request' }}
165172 with :
166173 repository : TheTrackerCouncil/SMZ3CasConfigs
167174 path : configs
168175 ref : main
169176 - name : Download sprite repo
170177 uses : actions/checkout@v4
178+ if : ${{ github.event_name != 'pull_request' }}
171179 with :
172180 repository : TheTrackerCouncil/SMZ3CasSprites
173181 path : sprites
174182 ref : main
175183 - name : Download tracker sprite repo
176184 uses : actions/checkout@v4
185+ if : ${{ github.event_name != 'pull_request' }}
177186 with :
178187 repository : TheTrackerCouncil/TrackerSprites
179188 path : trackersprites
@@ -192,16 +201,21 @@ jobs:
192201 Remove-Item -LiteralPath "trackersprites/.git" -Force -Recurse
193202 - name : Setup .NET
194203 uses : actions/setup-dotnet@v4
204+ if : ${{ github.event_name != 'pull_request' }}
195205 with :
196206 dotnet-version : 8.0.x
197207 - name : Restore dependencies
198208 run : dotnet restore src/TrackerCouncil.Smz3.UI/TrackerCouncil.Smz3.UI.csproj
209+ if : ${{ github.event_name != 'pull_request' }}
199210 - name : Build
200211 run : dotnet build --no-restore -p:PostBuildEvent= src/TrackerCouncil.Smz3.UI/TrackerCouncil.Smz3.UI.csproj
212+ if : ${{ github.event_name != 'pull_request' }}
201213 - name : Publish
202214 run : dotnet publish -r osx-arm64 --configuration Release -p:UseAppHost=true src/TrackerCouncil.Smz3.UI/TrackerCouncil.Smz3.UI.csproj
215+ if : ${{ github.event_name != 'pull_request' }}
203216 - name : Get version number
204217 id : version
218+ if : ${{ github.event_name != 'pull_request' }}
205219 run : |
206220 $version = (Get-Item "src\TrackerCouncil.Smz3.UI\bin\Release\net8.0\osx-arm64\publish\SMZ3CasRandomizer.dll").VersionInfo.ProductVersion
207221 $version = $version -replace "\+.*", ""
@@ -210,10 +224,12 @@ jobs:
210224 Write-Output "number=$version" >> $env:GITHUB_OUTPUT
211225 shell : pwsh
212226 - name : Prepare packaging script
227+ if : ${{ github.event_name != 'pull_request' }}
213228 run : |
214229 chmod +x ./setup/package-macos-app.sh
215230 ./setup/package-macos-app.sh "${{ steps.version.outputs.number }}"
216231 - name : Upload artifact
232+ if : ${{ github.event_name != 'pull_request' }}
217233 uses : actions/upload-artifact@v4
218234 with :
219235 path : " setup/output/*"
@@ -229,18 +245,22 @@ jobs:
229245
230246 steps :
231247 - uses : actions/download-artifact@v5
248+ if : ${{ github.event_name != 'pull_request' }}
232249 with :
233250 name : SMZ3CasRandomizerWindows
234251 path : out
235252 - uses : actions/download-artifact@v5
253+ if : ${{ github.event_name != 'pull_request' }}
236254 with :
237255 name : SMZ3CasRandomizerLinux
238256 path : out
239257 - uses : actions/download-artifact@v5
258+ if : ${{ github.event_name != 'pull_request' }}
240259 with :
241260 name : SMZ3CasRandomizerMacOS
242261 path : out
243262 - name : Extract some files
263+ if : ${{ github.event_name != 'pull_request' }}
244264 run : |
245265 ls -alR
246266 - name : Upload artifact
@@ -250,6 +270,7 @@ jobs:
250270 path : " out/*"
251271 name : SMZ3CasRandomizer_${{ needs.build-windows.outputs.version-number }}
252272 - name : Delete old artifacts
273+ if : ${{ github.event_name != 'pull_request' }}
253274 uses : geekyeggo/delete-artifact@v5
254275 with :
255276 name : |
0 commit comments