Update mill-main to 0.11.8 #433
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
name: CI | |
on: | |
create: | |
tags: | |
- v* | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
pipeline: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Pull all history with tags for correct versionning | |
run: git fetch --prune --unshallow | |
- name: Checks | |
run: | | |
git config --global user.name "CI" | |
./mill __.checkFormat + __.fix --check + __.docJar + __.test | |
- name: Publish | |
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || github.event_name == 'release' | |
run: | | |
echo "${{secrets.pgp_secret_key}}" > private.key | |
gpg --batch --yes --import private.key | |
rm private.key | |
./mill mill.scalalib.PublishModule/publishAll --sonatypeCreds ${{secrets.sonatype_credentials}} --publishArtifacts __.publishArtifacts --awaitTimeout 600000 --release true |