提交 39ec068a 编写于 作者: 如梦技术's avatar 如梦技术 🐛

🔧 Github actions.

上级 6c628531
sudo: false
language: java
jdk:
- openjdk8
- openjdk11
os:
- linux
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
install: ./gradlew --version
script: ./gradlew build --refresh-dependencies --no-daemon --continue
after_success:
- chmod u+x ./ci/deploy_snapshot.sh
- ./ci/deploy_snapshot.sh
## mica(云母)
[![Build Status](https://www.travis-ci.org/lets-mica/mica.svg?branch=master)](https://www.travis-ci.org/lets-mica/mica)
[![Java CI](https://github.com/lets-mica/mica/workflows/Java%20CI/badge.svg)](https://github.com/lets-mica/mica/actions)
![JAVA 8](https://img.shields.io/badge/JDK-1.8+-brightgreen.svg)
[![Mica Maven release](https://img.shields.io/nexus/r/https/oss.sonatype.org/net.dreamlu/mica-bom.svg?style=flat-square)](https://mvnrepository.com/artifact/net.dreamlu/mica-bom)
[![Mica maven snapshots](https://img.shields.io/nexus/s/https/oss.sonatype.org/net.dreamlu/mica-bom.svg?style=flat-square)](https://oss.sonatype.org/content/repositories/snapshots/net/dreamlu/)
......
#!/bin/bash
set -e -u
function gradle_publish() {
./gradlew clean publish
}
if [ "$TRAVIS_REPO_SLUG" == "lets-mica/mica" ] && \
[ "$TRAVIS_JDK_VERSION" == "openjdk8" ] && \
[ "$TRAVIS_PULL_REQUEST" == "false" ] && \
[ "$TRAVIS_BRANCH" == "master" ]; then
echo "Publishing To Maven snapshot..."
gradle_publish
echo "Maven snapshot published."
fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册