-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1.45 KB
/
ci.yml
File metadata and controls
46 lines (37 loc) · 1.45 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
37
38
39
40
41
42
43
44
45
46
# This workflow will build the toolbox model and publish it to GitHub Packages
name: Build toolbox model
on: [push, repository_dispatch]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: eclipse-set/build/.github/actions/setup-java@main
- name: Build
run: mvn -T 1.5C -B clean verify
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Publish
run: mvn -T 1.5C -B deploy -DaltDeploymentRepository=set-github::https://maven.pkg.github.com/${{ github.repository }}
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@f355d34d53ad4e7f506f699478db2dd71da9de5f # v2.15.1
if: always()
with:
files: |
${{ github.workspace }}/**/surefire-reports/*.xml
- name: Trigger SET
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 toolboxmodel update ${{ github.run_number }}"