Skip to content

Commit c82c7f4

Browse files
authored
Create publish.yml
1 parent 70a1a53 commit c82c7f4

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: publish
2+
on: []
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: checkout repository
9+
uses: actions/checkout@v3
10+
- name: setup jdk
11+
uses: actions/setip-java@v3
12+
with:
13+
distribution: microsoft
14+
java-version: 17
15+
cache: gradle
16+
- name: build
17+
run: ./gradlew build
18+
- name: read properties
19+
id: read_properties
20+
run: cat gradle.properties >> $GITHUB_OUTPUT
21+
- name: release
22+
uses: ncipollo/release-action@v1.12.0
23+
with:
24+
name: ${{format('SimpleClient {0}', steps.read_properties.outputs.simpleclient_version)}}
25+
artifacts: build/libs/*
26+
bodyfile: changelog.md
27+
tag: ${{steps.read_properties.outputs.simpleclient_version}}
28+
skipIfReleaseExists: true

0 commit comments

Comments
 (0)