Skip to content

Sync feature list, drop removed connector API #68

Sync feature list, drop removed connector API

Sync feature list, drop removed connector API #68

Workflow file for this run

name: Build java API
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
run_tests:
description: 'Run tests'
required: true
default: true
type: boolean
run_deploy:
description: 'Deploy to GitHub Packages'
required: true
default: false
type: boolean
# Least privilege. `mvn deploy` to GitHub Packages needs packages:write; nothing here
# needs write to repo contents.
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Set up JDK 11
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B clean package --file pom.xml
- name: Run Tests
if: ${{ github.event_name == 'workflow_dispatch' && inputs.run_tests || github.event_name != 'workflow_dispatch' }}
run: mvn -B test --file pom.xml
- name: Publish to GitHub Packages
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch' && inputs.run_deploy) }}
run: mvn deploy -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}