Update mill-main to 0.11.12 #132
Workflow file for this run
This file contains 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
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@v4 | |
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@v4 | |
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 | |