Skip to content

Commit

Permalink
Rebootstrap mill, split CI release process into two separate jobs (#748)
Browse files Browse the repository at this point in the history
* rebootstrap mill, split CI release process into two separate jobs

* docs
  • Loading branch information
lihaoyi authored Dec 20, 2019
1 parent fd66664 commit 3b88d50
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ matrix:


- stage: release
env: CI_SCRIPT="ci/on-master.py ci/release.sh"
env: CI_SCRIPT="ci/on-master.py ci/release-github.sh"
jdk: oraclejdk9
- stage: release
env: CI_SCRIPT="ci/on-master.py ci/release-maven.sh"
jdk: oraclejdk9
- stage: release
env: CI_SCRIPT="ci/on-master.py ci/publish-docs.sh"
Expand Down
10 changes: 10 additions & 0 deletions ci/release-github.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -eux

# Build Mill
./mill -i dev.assembly

rm -rf ~/.mill

out/dev/assembly/dest/mill uploadToGithub $GITHUB_ACCESS_TOKEN
2 changes: 0 additions & 2 deletions ci/release.sh → ci/release-maven.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ rm gpg_key

rm -rf ~/.mill

out/dev/assembly/dest/mill uploadToGithub $GITHUB_ACCESS_TOKEN

out/dev/assembly/dest/mill mill.scalalib.PublishModule/publishAll \
--sonatypeCreds lihaoyi:$SONATYPE_PASSWORD \
--gpgPassphrase $GPG_PASSWORD \
Expand Down
8 changes: 4 additions & 4 deletions docs/pages/1 - Intro to Mill.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ pkg install mill
### Windows

To get started, download Mill from:
https://github.com/lihaoyi/mill/releases/download/0.5.5/0.5.5-assembly, and save it as
`mill.bat`.
https://github.com/lihaoyi/mill/releases/download/0.5.6/0.5.6-assembly, and save
it as `mill.bat`.

If you're using [Scoop](https://scoop.sh) you can install Mill via

Expand Down Expand Up @@ -81,7 +81,7 @@ To get started, download Mill and install it into your system via the following
`curl`/`chmod` command:

```bash
sudo curl -L https://github.com/lihaoyi/mill/releases/download/0.5.5/0.5.5 > /usr/local/bin/mill && sudo chmod +x /usr/local/bin/mill
sudo curl -L https://github.com/lihaoyi/mill/releases/download/0.5.6/0.5.6 > /usr/local/bin/mill && sudo chmod +x /usr/local/bin/mill
```

### Bootstrap Scripts (Linux/OS-X Only)
Expand All @@ -90,7 +90,7 @@ If you are using Mill in a codebase, you can commit the bootstrap launcher as a
`./mill` script in the project folder:

```bash
curl -L https://github.com/lihaoyi/mill/releases/download/0.5.5/0.5.5 > mill && chmod +x mill
curl -L https://github.com/lihaoyi/mill/releases/download/0.5.6/0.5.6 > mill && chmod +x mill
```

Now, anyone who wants to work with the project can simply use the `./mill`
Expand Down
2 changes: 1 addition & 1 deletion mill
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This is a wrapper script, that automatically download mill from GitHub release pages
# You can give the required mill version with MILL_VERSION env variable
# If no version is given, it falls back to the value of DEFAULT_MILL_VERSION
DEFAULT_MILL_VERSION=0.5.2
DEFAULT_MILL_VERSION=0.5.6

set -e

Expand Down

0 comments on commit 3b88d50

Please sign in to comment.