aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
blob: d698cd01cb5df9e946138d6cf1299faf7d6b5500 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CI

on:
  pull_request:
  push:
      branches:
        - master
      tags:
        - v*

jobs:

  build:
    runs-on: ubuntu-latest
    steps:

    - uses: actions/checkout@v1

    - uses: jodersky/setup-mill@master

    - name: Test
      run: mill commando.test

    - name: Publish Tag
      if: startsWith(github.ref, 'refs/tags/')
      run: |
        echo "${{secrets.GPG_KEY}}" | gpg --import
        mill mill.scalalib.PublishModule/publishAll \
          --sonatypeCreds "8VNUX6+2:${{secrets.SONATYPE_PASSWORD}}" \
          --publishArtifacts __.publishArtifacts