Skip to content

Commit

Permalink
Deploy snapshots after successful master build
Browse files Browse the repository at this point in the history
  • Loading branch information
cescoffier committed Dec 18, 2020
1 parent 2bc7c2e commit 5d49398
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
strategy:
matrix:
java: [
{'version': '8', 'source': 'releases'},
{'version': '11', 'source': 'releases'},
{'version': '14', 'source': 'releases'}
{'version': '8', 'source': 'releases'},
{'version': '11', 'source': 'releases'},
{'version': '14', 'source': 'releases'}
]
name: Build with Java ${{ matrix.java.version }} (OpenJDK)
steps:
Expand Down Expand Up @@ -49,6 +49,27 @@ jobs:
- name: Build with Maven
run: mvn -B clean verify

snapshot:
needs: build
runs-on: ubuntu-20.04
steps:
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: maven-11
- uses: actions/checkout@v2
- name: Install JDK 11
uses: AdoptOpenJDK/install-jdk@v1
with:
version: 11
- name: Deploy snapshots
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x .build/deploy.sh .build/decrypt-secrets.sh
.build/decrypt-secrets.sh
.build/deploy.sh snapshot
quality:
needs: build
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -93,4 +114,4 @@ jobs:
version: 11
source: releases
- name: Compatibility Check
run: mvn -B install revapi:check@check-compatibility -DskipTests -fae
run: mvn -B install revapi:check@check-compatibility -DskipTests -fae

0 comments on commit 5d49398

Please sign in to comment.