Skip to content

Cloudsmith Deployment #52

Cloudsmith Deployment

Cloudsmith Deployment #52

Workflow file for this run

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 }}