Skip to content

Commit

Permalink
Merge pull request #2854 from Multiverse/dumptruckman/fix_release_8
Browse files Browse the repository at this point in the history
Combine release and publish into a single workflow.
  • Loading branch information
dumptruckman authored Feb 20, 2023
2 parents 758d258 + 73cd26a commit 908fcb1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 47 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/publish.yml

This file was deleted.

21 changes: 19 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Release Version
name: Create Release Version & Publish Package

on:
push:
Expand Down Expand Up @@ -27,11 +27,28 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
id: release
uses: rymndhng/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
bump_version_scheme: norelease
tag_prefix: ''
release_name: "Release <RELEASE_VERSION>"
use_github_release_notes: true

- name: Publish package
uses: gradle/gradle-build-action@v2
with:
arguments: publish
env:
GITHUB_VERSION: ${{ steps.release.outputs.tag_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload release artifact
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/libs/multiverse-core-${{ steps.release.outputs.tag_name }}.jar
asset_name: multiverse-core-${{ steps.release.outputs.tag_name }}.jar
tag: ${{ steps.release.outputs.tag_name }}

0 comments on commit 908fcb1

Please sign in to comment.