Skip to content

Update Mill to 0.11.12 (#111) #298

Update Mill to 0.11.12 (#111)

Update Mill to 0.11.12 (#111) #298

Workflow file for this run

on:
push:
branches:
- main
tags:
- '**'
pull_request:
# cancel older runs of a pull request;
# this will not cancel anything for normal git pushes
concurrency:
group: cancel-old-pr-runs-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
java-version: [8, 11]
runs-on: ${{ matrix.os }}
steps:
# checkout with history
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
- run: ./millw -i -k __.compile + __.testCached
if: runner.os != 'Windows'
- run: .\millw.bat -i -k __.compile + __.testCached
if: runner.os == 'Windows'
publish:
needs: [build]
if: github.repository == 'lefou/mill-aspectj' && github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
steps:
# checkout with history
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
- name: Setup GPG secrets
run: |
gpg --version
cat <(echo "${{ secrets.GPG_SECRET_KEY }}") | base64 --decode | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Publish to Maven Central
run: ./millw -i mill.scalalib.PublishModule/publishAll --sonatypeCreds "${{ secrets.SONATYPE_CREDS }}" --gpgArgs "--passphrase=${{ secrets.GPG_SECRET_KEY_PASS}},--batch,--yes,-a,-b,--pinentry-mode,loopback" --publishArtifacts __.publishArtifacts --readTimeout 600000 --awaitTimeout 600000 --release true --signed true