aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2019-09-22 23:19:04 -0400
committerJakob Odersky <jakob@odersky.com>2019-09-22 23:49:11 -0400
commit9601b8fb6aafaeb678ff7c390c26113d97d41c60 (patch)
treedd97eb5a92a71b6027cac20925e20ba88a05a51a
parent1de8952d2bdb03db592fc0946dc47fb10efaf005 (diff)
downloadcommando-9601b8fb6aafaeb678ff7c390c26113d97d41c60.tar.gz
commando-9601b8fb6aafaeb678ff7c390c26113d97d41c60.tar.bz2
commando-9601b8fb6aafaeb678ff7c390c26113d97d41c60.zip
add publish stepv0.2.0-dummy1
-rw-r--r--.github/workflows/main.yml40
-rw-r--r--build.sc2
2 files changed, 19 insertions, 23 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 0353ad5..d698cd0 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,34 +1,30 @@
name: CI
-on: [push]
+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: Import key
- run: echo "${{secrets.GPG_KEY}}" | gpg --import
- - name: Build
- run: mill commando.compile
- - name: assemble
- run: mill commando.assembly
+
- name: Test
run: mill commando.test
- - run: ls -lah out
- - run: ls -lah out/commando
- - run: ls -lah out/commando/assembly/dest
-
-
- # - name: Setup mill
- # run: |
- # curl -L https://github.com/lihaoyi/mill/releases/download/0.5.1/0.5.1 | sudo tee /usr/local/bin/mill > /dev/null
- # sudo chmod +x /usr/local/bin/mill
- # - name: Run tests
- # run: mill commando.test
- # - name: Publish
- # run: mill mill.scalalib.PublishModule/publishAll --sonatypeCreds "8VNUX6+2:${{secrets.dummy}}" --publishArtifacts __.publishArtifacts
- # - uses: ./ci/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
diff --git a/build.sc b/build.sc
index 963506b..8716e9b 100644
--- a/build.sc
+++ b/build.sc
@@ -10,7 +10,7 @@ object commando extends ScalaModule with ScalafmtModule with PublishModule {
def testFrameworks = Seq("utest.runner.Framework")
}
- def publishVersion = "0.2.0"
+ def publishVersion = os.proc("git", "describe", "--match=v*").call().out.trim.tail
def pomSettings = PomSettings(
description = "Simple command line parsing.",
organization = "io.crashbox",