From 8f27c2674c982e12798c2e880e443bc2c0a4bf9b Mon Sep 17 00:00:00 2001 From: Alpha Date: Sun, 3 Nov 2024 00:18:18 +0900 Subject: [PATCH] Update release.yml Signed-off-by: Alpha --- .github/workflows/release.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a64fc8e42..7a0ccbef7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,11 +3,6 @@ name: Release on: push: branches: [ "ver/*", "dev/*", "feat/**/*" ] - paths: - - "patches/server/**.patch" - - "patches/api/**.patch" - - "gradle.properties" - - "release.yml" workflow_dispatch: env: @@ -81,6 +76,13 @@ jobs: - name: Create Mojmap Jar run: ./gradlew createMojmapPaperclipJar --stacktrace + - name: Publish Packages + if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/') + run: | + export GITHUB_USERNAME=${{ env.ORG_NAME }} + export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} + ./gradlew publish --stacktrace + - name: Update Javadoc if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/') continue-on-error: true @@ -105,13 +107,6 @@ jobs: git add . && git commit -m "Update Javadocs" git push - - name: Publish Packages - if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/') - run: | - export GITHUB_USERNAME=${{ env.ORG_NAME }} - export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} - ./gradlew publish --stacktrace - - name: Release Artifacts if: startsWith(github.ref_name, 'ver/') uses: softprops/action-gh-release@v0.1.15