2222 - ' docs/**'
2323 - ' src/test/**'
2424 - ' README.md'
25+ merge_group :
2526
2627env :
2728 SpringerNatureAPIKey : ${{ secrets.SpringerNatureAPIKey }}
5455 eaJDK : https://files.jabref.org/jdks/jdk-windows-x64.zip
5556 - os : macos-latest
5657 displayName : macOS
57- archivePortable : brew install pigz && tar -c -C build/distribution JabRef.app | pigz --rsyncable > build/distribution/JabRef-portable_macos.tar.gz && rm -R build/distribution/JabRef.app
5858 eaJDK : https://files.jabref.org/jdks/jdk-macos-x64.tar.gz
5959 runs-on : ${{ matrix.os }}
6060 name : Create installer and portable version for ${{ matrix.displayName }}
7474 uses : actions/checkout@v3
7575 with :
7676 fetch-depth : 0
77+ - name : Install pigz and cache (linux)
78+ if : (matrix.os == 'ubuntu-latest')
79+ uses : awalsh128/cache-apt-pkgs-action@latest
80+ with :
81+ packages : pigz
82+ version : 1.0
7783 - name : Install GitVersion
7884 uses :
gittools/actions/gitversion/[email protected] 7985 with :
@@ -223,7 +229,7 @@ jobs:
223229 rm debian-binary control.tar.* data.tar.*
224230 mv -f jabref_${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}_amd64_repackaged.deb jabref_${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}_amd64.deb
225231 - name : Upload to builds.jabref.org (ubuntu)
226- if : (matrix.os == 'ubuntu-latest') && (steps.checksecrets.outputs.secretspresent == 'YES')
232+ if : (matrix.os == 'ubuntu-latest') && (steps.checksecrets.outputs.secretspresent == 'YES') && (!startsWith(github.ref, 'refs/heads/gh-readonly-queue'))
227233228234 env :
229235 DEPLOY_KEY : ${{ secrets.buildJabRefPrivateKey }}
@@ -234,13 +240,13 @@ jobs:
234240 src : ' build/distribution/'
235241 dest :
[email protected] :/var/www/builds.jabref.org/www/${{ steps.gitversion.outputs.branchName }}/ 236242 - name : Upload to GitHub workflow artifacts store (windows)
237- if : (matrix.os == 'windows-latest')
243+ if : (matrix.os == 'windows-latest') && (!startsWith(github.ref, 'refs/heads/gh-readonly-queue'))
238244 uses : actions/upload-artifact@v3
239245 with :
240246 name : JabRef-${{ matrix.displayName }}
241247 path : build/distribution
242248 - name : Upload to GitHub workflow artifacts store (macos)
243- if : (matrix.os == 'macos-latest') && (steps.checksecrets.outputs.secretspresent == 'YES')
249+ if : (matrix.os == 'macos-latest') && (steps.checksecrets.outputs.secretspresent == 'YES') && (!startsWith(github.ref, 'refs/heads/gh-readonly-queue'))
244250 uses : actions/upload-artifact@v3
245251 with :
246252 # tbn = to-be-notarized
@@ -283,25 +289,25 @@ jobs:
283289 name : JabRef-macOS-tbn
284290 path : build/distribution/
285291 - name : Notarize dmg
286- if : (steps.checksecrets.outputs.secretspresent == 'YES') && (( startsWith(github.ref, 'refs/tags/') || (${{ inputs.notarization }}) )
292+ if : (steps.checksecrets.outputs.secretspresent == 'YES') && (startsWith(github.ref, 'refs/tags/') || inputs.notarization == true )
287293 shell : bash
288294 run : |
289295 xcrun notarytool store-credentials "notarytool-profile" --apple-id "[email protected] " --team-id "6792V39SK3" --password "${{ secrets.OSX_NOTARIZATION_APP_PWD }}" 290296 xcrun notarytool submit build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.dmg --keychain-profile "notarytool-profile" --wait
291297 xcrun stapler staple build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.dmg
292298 - name : Notarize pkg
293- if : (steps.checksecrets.outputs.secretspresent == 'YES') && (( startsWith(github.ref, 'refs/tags/') || (${{ inputs.notarization }}) )
299+ if : (steps.checksecrets.outputs.secretspresent == 'YES') && (startsWith(github.ref, 'refs/tags/') || inputs.notarization == true )
294300 shell : bash
295301 run : |
296302 xcrun notarytool store-credentials "notarytool-profile" --apple-id "[email protected] " --team-id "6792V39SK3" --password "${{ secrets.OSX_NOTARIZATION_APP_PWD }}" 297303 xcrun notarytool submit build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.pkg --keychain-profile "notarytool-profile" --wait
298304 xcrun stapler staple build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.pkg
299305 - name : Package application image
300- if : (steps.checksecrets.outputs.secretspresent == 'YES')
306+ if : (steps.checksecrets.outputs.secretspresent == 'YES') && (matrix.os != 'macos-latest')
301307 shell : bash
302308 run : ${{ matrix.archivePortable }}
303309 - name : Upload to GitHub workflow artifacts store
304- if : (steps.checksecrets.outputs.secretspresent == 'YES')
310+ if : (steps.checksecrets.outputs.secretspresent == 'YES') && (!startsWith(github.ref, 'refs/heads/gh-readonly-queue'))
305311 uses : actions/upload-artifact@v3
306312 with :
307313 name : JabRef-macOS
@@ -312,6 +318,7 @@ jobs:
312318 name : Upload binaries on builds.jabref.org
313319 runs-on : ubuntu-latest
314320 needs : [build, notarize]
321+ if : ${{ !startsWith(github.ref, 'refs/heads/gh-readonly-queue') }}
315322 steps :
316323 - name : Check secrets presence
317324 id : checksecrets
@@ -346,13 +353,13 @@ jobs:
346353 name : JabRef-windows
347354 path : build/distribution
348355 - name : Get macOS binaries unsigned
349- if : (steps.checksecrets.outputs.secretspresent == 'YES') && ! (${{ inputs.notarization }})) && ! ( startsWith(github.ref, 'refs/tags/')
356+ if : (steps.checksecrets.outputs.secretspresent == 'YES') && ( inputs.notarization == false && !startsWith(github.ref, 'refs/tags/') )
350357 uses : actions/download-artifact@master
351358 with :
352359 name : JabRef-macOS-tbn
353360 path : build/distribution/
354361 - name : Get macOS binaries notarized
355- if : (steps.checksecrets.outputs.secretspresent == 'YES') && ((${{ inputs.notarization }})) || ( startsWith(github.ref, 'refs/tags/'))
362+ if : (steps.checksecrets.outputs.secretspresent == 'YES') && (inputs.notarization == true || startsWith(github.ref, 'refs/tags/'))
356363 uses : actions/download-artifact@master
357364 with :
358365 name : JabRef-macOS
0 commit comments