Add support for Scala 2.13.15 #91
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: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
java-version: [8, 11, 17] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'temurin' | |
- run: ./millw --no-server "__.publishM2Local" test-repo | |
publish-sonatype: | |
# TODO: also publish release-branches | |
if: github.repository == 'com-lihaoyi/mill-moduledefs' && startsWith( github.ref, 'refs/tags/') | |
needs: [test] | |
runs-on: ubuntu-latest | |
env: | |
LANG: "en_US.UTF-8" | |
LC_MESSAGES: "en_US.UTF-8" | |
LC_ALL: "en_US.UTF-8" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 8 | |
distribution: temurin | |
- name: Setup GPG secrets for publish | |
run: | | |
gpg --version | |
cat <(echo "${{ secrets.SONATYPE_PGP_PRIVATE_KEY }}") | base64 --decode | gpg --batch --import | |
gpg --list-secret-keys --keyid-format LONG | |
- name: Publish to Maven Central | |
run: ./millw --no-server --debug publishToSonatype --sonatypeCreds "${{ secrets.SONATYPE_USER }}:${{ secrets.SONATYPE_PASSWORD }}" --gpgArgs "--passphrase=${{ secrets.SONATYPE_PGP_PRIVATE_KEY_PASSWORD}},--batch,--yes,-a,-b,--pinentry-mode,loopback" --artifactsFile PUBLISH_ONLY |