Skip to content

Commit

Permalink
fix(ci/cd): publish creates non-obfed jarjar
Browse files Browse the repository at this point in the history
Move publish to end to avoid
  • Loading branch information
klikli-dev committed Jul 21, 2023
1 parent d7e4c94 commit 6e7214a
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/build_and_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,6 @@ jobs:
env:
MOD_VERSION: ${{ steps.get_version.outputs.result }}
MINECRAFT_VERSION: ${{ steps.get_mc_version.outputs.result }}
- name: Publish
uses: gradle/gradle-build-action@v2
with:
arguments: publish
env:
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
MOD_VERSION: ${{ steps.get_version.outputs.result }}
MINECRAFT_VERSION: ${{ steps.get_mc_version.outputs.result }}
- name: Update CHANGELOG
id: changelog
uses: klikli-dev/changelog-action@main
Expand Down Expand Up @@ -88,6 +79,7 @@ jobs:
file_pattern: CHANGELOG.md
- name: Upload Forge Version to Mod Platforms
uses: Kir-Antipov/mc-publish@v3.3
if: ${{ steps.get_release_type.outputs.result != 'test' }}
with:
modrinth-id: 692GClaE
modrinth-token: ${{ secrets.MODRINTH_API_KEY }}
Expand All @@ -113,6 +105,7 @@ jobs:
jei(optional)
- name: Upload Fabric Version to Mod Platforms
uses: Kir-Antipov/mc-publish@v3.3
if: ${{ steps.get_release_type.outputs.result != 'test' }}
with:
modrinth-id: 692GClaE
modrinth-token: ${{ secrets.MODRINTH_API_KEY }}
Expand All @@ -135,4 +128,16 @@ jobs:
Find changes for all versions at https://github.com/klikli-dev/modonomicon/releases
dependencies: |
fabric(required)
jei(optional)
jei(optional)
# Publish at the end because it creates a non reobfed jarjar which otherwise would be distributed
- name: Publish
uses: gradle/gradle-build-action@v2
if: ${{ steps.get_release_type.outputs.result != 'test' }}
with:
arguments: publish
gradle-home-cache-cleanup: true
env:
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
MOD_VERSION: ${{ steps.get_version.outputs.result }}
MINECRAFT_VERSION: ${{ steps.get_mc_version.outputs.result }}

0 comments on commit 6e7214a

Please sign in to comment.