This repository was archived by the owner on Jun 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +44
-2
lines changed Expand file tree Collapse file tree 2 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 6
6
- development
7
7
8
8
jobs :
9
- build :
9
+ deploy-snaphost :
10
10
11
11
runs-on : ubuntu-latest
12
12
permissions :
Original file line number Diff line number Diff line change @@ -274,4 +274,46 @@ jobs:
274
274
- name : Set validation skipped status
275
275
if : ${{ always() && needs.changes.outputs.validation-required == 'false' }}
276
276
run : |
277
- echo "✅ Pull request only contains changes on files ignored by validation workflow" | tee -a $GITHUB_STEP_SUMMARY && exit 0
277
+ echo "✅ Pull request only contains changes on files ignored by validation workflow" | tee -a $GITHUB_STEP_SUMMARY && exit 0
278
+ deploy-snapshots :
279
+ runs-on : ubuntu-latest
280
+ needs : [test-results]
281
+ # if: ${{ github.event_name == 'push' && github.ref_protected }}
282
+ if : ${{ success() }}
283
+ permissions :
284
+ contents : read
285
+ packages : write
286
+
287
+ steps :
288
+ - uses : actions/checkout@v3
289
+ with :
290
+ fetch-depth : 0
291
+ - name : Set up Java
292
+ uses : actions/setup-java@v3
293
+ with :
294
+ distribution : ' temurin'
295
+ java-version : ' 17'
296
+ server-id : github-vertx-vaadin
297
+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
298
+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
299
+ - uses : actions/download-artifact@v3
300
+ if : ${{ github.run_attempt == 1 }}
301
+ with :
302
+ name : saved-workspace
303
+ - name : Restore Workspace
304
+ if : ${{ github.run_attempt == 1 }}
305
+ run : |
306
+ set -x
307
+ tar xf workspace.tar
308
+ tar cf - .m2 | (cd ~ && tar xf -)
309
+ - name : Build
310
+ if : ${{ github.run_attempt > 1 }}
311
+ run : |
312
+ set -x -e -o pipefail
313
+ mvn -V -e -B -ntp -DskipTests install
314
+ - name : Deploy classifiers
315
+ run : |
316
+ mvn -V -e -B -ntp -DskipVertxRun=true -Ddistribution.id=github-vertx-vaadin -Dvertx-vaadin.release.gpg deploy
317
+ env :
318
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
319
+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments