diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-11-02 16:05:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-02 16:05:34 +0100 |
| commit | a27e1e5ec300b3b0bd3d4631b680d3b052a69b7d (patch) | |
| tree | f23a0e84d43a3c724c22415840f003ee4686a775 /.github/workflows/release.yml | |
| parent | 722bf49b9263005d665b01c8fa6c676ef9a685f7 (diff) | |
| parent | 29abae146139078b1c7254c0e46b5c9e65cc30cd (diff) | |
ci: Update Github Actions workflows (#40)
This pull request updates the CI pipeline of the project.
**Implementation Notes**
- Update to Codecov action v2
- Update to `setup-java` v2
- Migrate to `gradle/gradle-build-action@v2`
- Add workflows for testing Java and Gradle EA releases
- Update build dependencies
**External Dependencies**
- Kotlin, Github Actions, Ktlint, Dokka
Diffstat (limited to '.github/workflows/release.yml')
| -rw-r--r-- | .github/workflows/release.yml | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c1f2864c..ce1d2a1b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,23 +17,14 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v1 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: 'zulu' java-version: ${{ matrix.java }} - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - uses: actions/cache@v2 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-${{ matrix.java }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-${{ matrix.java }}-gradle- - - name: Build with Gradle - run: ./gradlew :assembleDist - name: Publish with Gradle - run: ./gradlew publish + uses: gradle/gradle-build-action@v2 + with: + arguments: publish env: ORG_GRADLE_PROJECT_signingKeyId: F8134F9C ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }} @@ -48,10 +39,3 @@ jobs: files: build/distributions/* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Cleanup Gradle Daemons - run: ./gradlew --stop - - name: Cleanup Gradle Cache - run: | - rm -f ~/.gradle/caches/modules-2/modules-2.lock - rm -f ~/.gradle/caches/modules-2/gc.properties - shell: bash |
