Skip to content

Update mill-main to 0.11.3 #82

Update mill-main to 0.11.3

Update mill-main to 0.11.3 #82

Workflow file for this run

on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
java-version: [8, 11]
runs-on: ${{ matrix.os }}
# continue-on-error: ${{ matrix.os == 'windows-latest' }}
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --tags --unshallow
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
- run: ./millw -i -k __.compile + __.testCached
if: matrix.os != 'windows-latest'
- run: ./millw.bat -i -k __.compile + __.testCached
if: matrix.os == 'windows-latest'
shell: cmd
publish:
needs: build
if: github.repository == 'lefou/mill-jbake' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
concurrency: publish-{{ github.sha }}
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --tags --unshallow
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
- name: Setup GPG secrets for publish
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