-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (48 loc) · 1.87 KB
/
release.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
45
46
47
48
49
50
name: Release
run-name: Releasing ${{inputs.semVer}}
on:
workflow_dispatch:
inputs:
semVer:
required: true
type: string
description: "Version number"
jobs:
publish:
if: ${{ github.actor == 'lehvolk' || github.actor == 'denis-fokin' || github.actor == 'bissquit' || github.actor == 'Vassiliy-Kudryashov' }}
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Publish package
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
gradle-version: 7.6.1
arguments: |
publish
-PincludeDokka=true
-PsemVer=${{inputs.semVer}}
-Pactor=${{ secrets.MAVEN_CENTRAL_LOGIN }}
-Ptoken=${{ secrets.MAVEN_CENTRAL_TOKEN }}
-PgpgKey="${{ secrets.OSSRH_GPG_SECRET_KEY }}"
-PgpgPassphrase=${{ secrets.OSSRH_GPG_SECRET_PASSPHRASE }}
-PrepoUrl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
- name: Upload release artifacts
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
jacodb-api/build/libs/jacodb-api-${{inputs.semVer}}.jar
jacodb-approximations/build/libs/jacodb-approximations-${{inputs.semVer}}.jar
jacodb-taint-configuration/build/libs/jacodb-taint-configuration-${{inputs.semVer}}.jar
jacodb-analysis/build/libs/jacodb-analysis-${{inputs.semVer}}.jar
jacodb-core/build/libs/jacodb-core-${{inputs.semVer}}.jar
jacodb-cli/build/libs/jacodb-cli-${{inputs.semVer}}.jar
jacodb-examples/build/libs/jacodb-examples-${{inputs.semVer}}.jar