Skip to content

feat: migrate to mill 1.0 (#492) #53

feat: migrate to mill 1.0 (#492)

feat: migrate to mill 1.0 (#492) #53

name: Publish snapshot
on:
workflow_dispatch:
push:
branches:
- main
jobs:
compile-all:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set version
run: sed -i "s/publishVersion = \"\(.*\)\"/publishVersion = \"\1-$(echo ${GITHUB_SHA} | cut -c1-8)-SNAPSHOT\"/g" build.sc
- name: Publish
shell: bash
env:
MILL_SONATYPE_USERNAME: ${{ secrets.OSS_USERNAME }}
MILL_SONATYPE_PASSWORD: ${{ secrets.OSS_PASSWORD }}
MILL_PGP_PASSPHRASE: ${{ secrets.MILL_PGP_PASSPHRASE }}
MILL_PGP_SECRET_BASE64: ${{ secrets.MILL_PGP_SECRET_BASE64 }}
run: |
./mill mill.scalalib.SonatypeCentralPublishModule/ --publishArtifacts __.publishArtifacts