Cloudsmith Deployment #52
This file contains hidden or 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
| name: Cloudsmith Deployment | |
| on: | |
| schedule: | |
| - cron: '0 1 * * 1' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK 21 for build | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| cache: 'maven' | |
| - name: Build with Maven | |
| run: mvn test -DforkMode=always --fail-at-end --batch-mode -Dmatsim.preferLocalDtds=true | |
| - name: Set up JDK 21 for Cloudsmith (and configure server credentials) | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| server-id: msm | |
| server-username: CLOUDSMITH_USERNAME | |
| server-password: CLOUDSMITH_TOKEN | |
| - name: Publish to Cloudsmith | |
| run: mvn deploy -DskipTests=true --fail-at-end --batch-mode -Dmatsim.preferLocalDtds=true | |
| env: | |
| CLOUDSMITH_USERNAME: carlos-llorca | |
| CLOUDSMITH_TOKEN: ${{ secrets.cloudsmithToken }} |