Skip to content

Commit 3b0c9f4

Browse files
author
Kosh
committed
add release action
1 parent 3ed45db commit 3b0c9f4

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
publish:
10+
11+
runs-on: ubuntu-latest
12+
if: github.repository == 'k0shk0sh/ComposeEasyForms'
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: set up JDK
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: 11
22+
23+
- name: Upload release
24+
run: ./gradlew publish --no-daemon --no-parallel
25+
env:
26+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
27+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
28+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
29+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
30+
31+
- name: Publish release
32+
run: ./gradlew closeAndReleaseRepository --no-daemon --no-parallel
33+
env:
34+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
35+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"major": 0,
3-
"minor": 0,
3+
"minor": 1,
44
"patch": 0
55
}

0 commit comments

Comments
 (0)