Skip to content

Commit 908fcb1

Browse files
authored
Merge pull request #2854 from Multiverse/dumptruckman/fix_release_8
Combine release and publish into a single workflow.
2 parents 758d258 + 73cd26a commit 908fcb1

File tree

2 files changed

+19
-47
lines changed

2 files changed

+19
-47
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Create Release Version
1+
name: Create Release Version & Publish Package
22

33
on:
44
push:
@@ -27,11 +27,28 @@ jobs:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828

2929
- name: Create release
30+
id: release
3031
uses: rymndhng/[email protected]
3132
env:
32-
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3334
with:
3435
bump_version_scheme: norelease
3536
tag_prefix: ''
3637
release_name: "Release <RELEASE_VERSION>"
3738
use_github_release_notes: true
39+
40+
- name: Publish package
41+
uses: gradle/gradle-build-action@v2
42+
with:
43+
arguments: publish
44+
env:
45+
GITHUB_VERSION: ${{ steps.release.outputs.tag_name }}
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
48+
- name: Upload release artifact
49+
uses: svenstaro/upload-release-action@v2
50+
with:
51+
repo_token: ${{ secrets.GITHUB_TOKEN }}
52+
file: build/libs/multiverse-core-${{ steps.release.outputs.tag_name }}.jar
53+
asset_name: multiverse-core-${{ steps.release.outputs.tag_name }}.jar
54+
tag: ${{ steps.release.outputs.tag_name }}

0 commit comments

Comments
 (0)