Skip to content

Update build.yml

Update build.yml #25

Workflow file for this run

name: OWL API Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- name: Build
run: mvn package && tree
- uses: actions/upload-artifact@v3
with:
name: owlapi-iri-fix
path: distribution/target/owlapi-distribution-5.1.18.jar
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}