Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Move publish to other workflow, fix shadow artifact not being generated
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Jun 7, 2021
1 parent 22a60dc commit 1dd7668
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 19 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/gradlecd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,19 @@ jobs:

- name: Run gradle publish
run: gradle publish -PmineinabyssMavenUsername=${{ secrets.MAVEN_PUBLISH_USERNAME }} -PmineinabyssMavenPassword=${{ secrets.MAVEN_PUBLISH_PASSWORD }}

- name: Get version from gradle
shell: bash
id: extract_version
run: |
version=`./gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}'`
echo "::set-output name=version::$version"
- name: Create GitHub Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: v${{ steps.extract_version.outputs.version }}
files: |
spigot/build/libs/*-all.jar
16 changes: 0 additions & 16 deletions .github/workflows/gradleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,3 @@ jobs:
with:
name: build
path: spigot/build/libs

- name: Get version from gradle
shell: bash
id: extract_version
run: |
version=`./gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}'`
echo "::set-output name=version::$version"
- name: Create GitHub Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: v${{ steps.extract_version.outputs.version }}
files: |
spigot/build/libs/*-all.jar
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@ gradle-app.setting

# Cache of project
.gradletasknamecache

# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties
1 change: 1 addition & 0 deletions spigot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ shadowJar {
archiveBaseName.set("KotlinSpice")
mergeServiceFiles()
}
build.dependsOn shadowJar


if (project.hasProperty("plugin_path") && plugin_path) {
Expand Down

0 comments on commit 1dd7668

Please sign in to comment.