Skip to content

Commit d4e5552

Browse files
committed
Automatically upload bundle jars and create GitHub release on deploy
1 parent 55012c9 commit d4e5552

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
- uses: gradle/wrapper-validation-action@v1
2727
- name: Deploy to Maven Central
28-
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --no-daemon --stacktrace
28+
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository createBundle --no-daemon --stacktrace
2929
env:
3030
RELEASE_BUILD: true
3131
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
@@ -39,3 +39,23 @@ jobs:
3939
run: |
4040
rm -f ~/.gradle/caches/modules-2/modules-2.lock
4141
rm -fr ~/.gradle/caches/*/plugin-resolution/
42+
43+
- name: Get tag name
44+
id: get_tag
45+
shell: bash
46+
run: |
47+
tag_name="$(echo $GITHUB_REF | cut -d / -f 3)"
48+
echo ::set-output name=tag::$tag_name
49+
- name: Create GitHub Release
50+
uses: softprops/action-gh-release@v1
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
with:
54+
tag_name: ${{ steps.get_tag.outputs.tag }}
55+
name: ${{ steps.get_tag.outputs.tag }}
56+
prerelease: false
57+
draft: false
58+
files: |
59+
core/build/libs/bundle-*.jar
60+
httpclient/build/libs/bundle-*.jar
61+
samples/build/libs/bundle-*.jar

0 commit comments

Comments
 (0)