Build model #72
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a 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@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: temurin | |
server-id: set-github | |
cache: maven | |
- name: Set up Maven | |
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5 | |
with: | |
maven-version: 3.9.3 | |
- name: Build | |
run: mvn -T 1.5C -B clean verify | |
- 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: 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/toolboxmodel | |
event-type: "Rebuild with model update ${{ github.run_number }}" |