-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from com-lihaoyi/scala-2.11
Publish for Scala 2.11
- Loading branch information
Showing
6 changed files
with
1,201 additions
and
142 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- name: Install node and jsdom | ||
run: | | ||
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - | ||
sudo apt-get install -y nodejs | ||
npm install | ||
- name: Run tests | ||
run: ./mill -i __.publishArtifacts __.test | ||
|
||
publish-sonatype: | ||
if: github.repository == 'com-lihaoyi/scalatags' && contains(github.ref, 'refs/tags/') | ||
needs: test | ||
runs-on: ubuntu-latest | ||
env: | ||
SONATYPE_PGP_PRIVATE_KEY: ${{ secrets.SONATYPE_PGP_PRIVATE_KEY }} | ||
SONATYPE_PGP_PRIVATE_KEY_PASSWORD: ${{ secrets.SONATYPE_PGP_PRIVATE_KEY_PASSWORD }} | ||
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
LANG: "en_US.UTF-8" | ||
LC_MESSAGES: "en_US.UTF-8" | ||
LC_ALL: "en_US.UTF-8" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- name: Publish to Maven Central | ||
run: | | ||
if [[ $(git tag --points-at HEAD) != '' ]]; then | ||
echo $SONATYPE_PGP_PRIVATE_KEY | base64 --decode > gpg_key | ||
gpg --import --no-tty --batch --yes gpg_key | ||
rm gpg_key | ||
./mill -i mill.scalalib.PublishModule/publishAll \ | ||
--sonatypeCreds $SONATYPE_USER:$SONATYPE_PASSWORD \ | ||
--gpgArgs --passphrase=$SONATYPE_PGP_PRIVATE_KEY_PASSWORD,--no-tty,--pinentry-mode,loopback,--batch,--yes,-a,-b \ | ||
--publishArtifacts __.publishArtifacts \ | ||
--readTimeout 600000 \ | ||
--awaitTimeout 600000 \ | ||
--release true \ | ||
--signed true | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.9.4-29-9d1d6f | ||
0.9.5-52-ef6d5d |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Oops, something went wrong.