Skip to content

Merge pull request #197 from smallrye/ci/smallrye-new-secrets-scheme #211

Merge pull request #197 from smallrye/ci/smallrye-new-secrets-scheme

Merge pull request #197 from smallrye/ci/smallrye-new-secrets-scheme #211

Workflow file for this run

---
name: Main CI/CD pipeline
on:
push:
branches:
- main
jobs:
build-main:
runs-on: ubuntu-latest
strategy:
matrix:
java: [
{ 'version': '11', 'opts': '' },
{ 'version': '17', 'opts': '' },
{ 'version': '21', 'opts': '' }
]
name: Build with Java ${{ matrix.java.version }} (OpenJDK)
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
name: Set up JDK ${{matrix.java.version}}
with:
distribution: temurin
java-version: ${{matrix.java.version}}
cache: maven
- name: Build with Maven
env:
MAVEN_OPTS: ${{ matrix.java.opts }}
run: ./mvnw -s .github/maven-ci-settings.xml -B clean verify
deploy:
name: Deployment
needs: build-main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
name: Set up JDK 11
with:
distribution: temurin
java-version: 11
cache: maven
server-id: 'oss.sonatype'
server-username: 'MAVEN_DEPLOY_USERNAME'
server-password: 'MAVEN_DEPLOY_TOKEN'
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: 'MAVEN_GPG_PASSPHRASE'
- name: Deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_DEPLOY_USERNAME: ${{ secrets.MAVEN_DEPLOY_USERNAME }}
MAVEN_DEPLOY_TOKEN: ${{ secrets.MAVEN_DEPLOY_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
run: |
.github/scripts/deploy.sh
compatibility:
runs-on: ubuntu-latest
name: Compatibility Check
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
name: Set up JDK 11
with:
distribution: temurin
java-version: 11
cache: maven
- name: Compatibility Check
run: ./mvnw -s .github/maven-ci-settings.xml -B install revapi:check@check-compatibility -DskipTests -fae