Build definition on Mill 0.13 #299
This file contains hidden or 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 __.checkStyle + __[0.12.0].test + __.docJar + __.publishLocal | |
| - 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/ --sonatypeCreds ${{secrets.sonatype_credentials}} |