Skip to content
This repository was archived by the owner on Jun 7, 2025. It is now read-only.

Commit cfb0ab6

Browse files
committed
deploy on push
1 parent 717747d commit cfb0ab6

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

.github/workflows/deploy-snapshots.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- development
77

88
jobs:
9-
build:
9+
deploy-snaphost:
1010

1111
runs-on: ubuntu-latest
1212
permissions:

.github/workflows/validation.yml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,4 +274,46 @@ jobs:
274274
- name: Set validation skipped status
275275
if: ${{ always() && needs.changes.outputs.validation-required == 'false' }}
276276
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 }}

0 commit comments

Comments
 (0)