Skip to content

Update .mill-version to 0.11.11 #191

Update .mill-version to 0.11.11

Update .mill-version to 0.11.11 #191

Workflow file for this run

name: ci
on:
push:
branches: [dss]
tags: ["v*"]
pull_request:
branches: ["*"]
jobs:
build:
strategy:
fail-fast: false
matrix:
java: [21]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: Java ${{ matrix.java }} ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: coursier/setup-action@v1
with:
jvm: adoptium:${{ matrix.java }}
- name: Clean and build
run: ./gradlew clean build -Plog-tests
publish:
strategy:
matrix:
java: [21]
os: [ubuntu-latest]
name: Publish
needs: [build]
if: github.event_name != 'pull_request' && ((github.ref == 'refs/heads/dss') || startsWith(github.ref, 'refs/tags/v'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: coursier/setup-action@v1
with:
jvm: adoptium:${{ matrix.java }}
apps: mill
- name: Cache mill
uses: coursier/cache-action@v6
- name: Compile
run: mill -k --disable-ticker __.compile
- name: Publish ${{ github.ref }}
run: ./ci/publish.sh && echo "PUBLISH_VERSION=$(mill -k --disable-ticker show lsp.publishVersion | tr -d '\"')" >> $GITHUB_ENV
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}