Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
2No2Name committed Jan 28, 2025
1 parent 683dbd8 commit 3a4403a
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,16 @@ jobs:
echo "$trimmed_changelog" > CHANGELOG.md
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: mc${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}
release_name: ${{ env.RELEASE_NAME }}
body_path: CHANGELOG.md
draft: false
prerelease: ${{ inputs.releaseType != 'stable' }}

- name: Upload assets to GitHub
uses: AButler/[email protected]
with:
files: 'build/libs/*.jar;!build/libs/*-dev.jar;LICENSE'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-id: ${{ steps.create_release.outputs.id }}
run: |
gh release create mc${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }} \
--title="${{ env.RELEASE_NAME }}" \
--notes-file=CHANGELOG.md \
--target=${{ github.ref_name }} \
--draft=false \
--prerelease=${{ inputs.releaseType != 'stable' }} \
build/libs/*.jar LICENSE
- name: Publish to Modrinth and Curseforge
env:
Expand Down

0 comments on commit 3a4403a

Please sign in to comment.