Add gh actions
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
name: Build
|
||||
on: [ push, pull_request ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: gradle/wrapper-validation-action@v1
|
||||
- uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
- name: Configure Git
|
||||
run: git config --global user.email "[email protected]" && git config --global user.name "Github Actions"
|
||||
- name: Build
|
||||
run: ./gradlew build --stacktrace
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Chat.jar
|
||||
path: build/libs/Chat*.jar
|
||||
@@ -26,6 +26,10 @@ subprojects {
|
||||
withType<Javadoc> {
|
||||
options.encoding = Charsets.UTF_8.name()
|
||||
}
|
||||
|
||||
withType<JavaCompile> {
|
||||
options.isDeprecation = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user