-
Notifications
You must be signed in to change notification settings - Fork 13
44 lines (35 loc) · 1.2 KB
/
push-to-master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: On push to master
on:
push:
branches:
- master
concurrency: push-to-master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout full repository history
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
cache: 'gradle'
- name: Build, upload release version to Maven Central and create git release tag with Gradle
run: ./gradlew detekt final closeAndReleaseStagingRepository printFinalReleaseNote
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GRGIT_USER: ${{ secrets.GRGIT_USER }}
GRGIT_PASS: ${{ secrets.GRGIT_PASS }}
- name: Upload static analysis results
uses: github/codeql-action/upload-sarif@v2
if: always()
with:
sarif_file: ${{ github.workspace }}/build/reports/detekt/detekt.sarif
category: "Detekt Scanning"