Files
detekt/.github/workflows/deploy-snapshot.yaml
Artur Bosch ee49144114 Support Kotlin 1.4 (#2981)
* Update to Gradle 6.6

* Update to Kotlin 1.4

* Upgrade to prerelease of KtLint 0.38

* Fix testcase by unwrapping the original descriptor

* Increase max heap for dokka on Java 11

* Update minimal supported Gradle version to 5.3

* Do not run warningsAsErrors on CI due to Gradle not supporting Kotlin 1.4

* Remove new line testing as it fails on windows

* Require Gradle 5.4 to reflect Kotlin's required version from their website
2020-08-20 20:00:38 +02:00

42 lines
1011 B
YAML

name: Deploy Snapshot
on:
push:
branches:
- master
jobs:
gradle:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Cache Gradle Folders
uses: actions/cache@v2
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/
key: cache-gradle-${{ hashFiles('detekt-bom/build.gradle.kts') }}
restore-keys: |
cache-gradle-
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 8
- name: Build detekt
run: ./gradlew build --build-cache --parallel
- name: Deploy Snapshot
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
run: ./gradlew artifactoryPublish -Dsnapshot=true --stacktrace
if: ${{ github.repository == 'detekt/detekt'}}