-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (29 loc) · 1.09 KB
/
ci.yml
File metadata and controls
36 lines (29 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This workflow will build the model and publish it to GitHub Packages
name: Build model
on: push
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v6
- name: Setup Java
uses: eclipse-set/build/.github/actions/setup-java@main
- name: Build
run: mvn -T 1.5C -B clean verify
working-directory: java
- name: Publish
run: mvn -T 1.5C -B deploy -DaltDeploymentRepository=set-github::https://maven.pkg.github.com/${{ github.repository }}
working-directory: java
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Trigger Toolboxmodel
if: github.ref == 'refs/heads/main' && github.repository_owner == 'eclipse-set'
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
with:
token: ${{ secrets.GH_BOT_TOKEN }}
repository: eclipse-set/set
event-type: "Rebuild with model update ${{ github.run_number }}"