Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rlnt committed Jul 31, 2022
1 parent 4a6e1c7 commit c169785
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 43 deletions.
55 changes: 13 additions & 42 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,63 +78,34 @@ jobs:
- name: Parse changelog
run: parse-changelog CHANGELOG.md ${{ env.MOD_VERSION }} > changes.md

- name: Upload to CurseForge
uses: Kir-Antipov/mc-publish@v2.1
- name: Release
uses: Kir-Antipov/mc-publish@v3.1
with:
curseforge-id: 489843
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
modrinth-id: 7mmL0PW9
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

files: ${{ env.JAR_FILE }}
name: ${{ env.MOD_NAME }}-${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}
version: ${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}
version-type: ${{ env.RELEASE_TYPE }}
changelog-file: changes.md

loaders: forge
game-versions: ${{ env.MINECRAFT_VERSION }}
version: ${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}
version-type: ${{ env.RELEASE_TYPE }}
version-resolver: exact
dependencies: |
java: 17

changelog-file: changes.md
curseforge-dependencies: |
applied-energistics-2 | depends | *
jei | suggests | *
crafttweaker | suggests | *
kubejs | suggests | *
java: 17
retry-attempts: 2
retry-delay: 10000

- name: Upload to Modrinth
uses: Kir-Antipov/[email protected]
with:
modrinth-id: 7mmL0PW9
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

files: ${{ env.JAR_FILE }}
name: ${{ env.MOD_NAME }}-${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}
version: ${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}
version-type: ${{ env.RELEASE_TYPE }}
changelog-file: changes.md

loaders: forge
game-versions: ${{ env.MINECRAFT_VERSION }}
version-resolver: exact
dependencies: |
modrinth-dependencies: |
ae2 | depends | *
kubejs | suggests | *
java: 17
retry-attempts: 2
retry-delay: 10000

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ env.MOD_NAME }}-${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}.jar
path: ${{ env.JAR_FILE }}

- name: Upload to GitHub
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body_path: changes.md
files: ${{ env.JAR_FILE }}
prerelease: ${{ env.PRE_RELEASE }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ This project is licensed under the [MIT license][license].
[version_link]: https://github.com/AlmostReliable/lazierae2-forge/releases/latest
[total_downloads_cf_badge]: http://cf.way2muchnoise.eu/full_489843.svg?badge_style=flat
[total_downloads_mr_badge]: https://img.shields.io/badge/dynamic/json?style=flat-square&color=5da545&label=modrinth&query=downloads&url=https://api.modrinth.com/api/v1/mod/7mmL0PW9
[workflow_status_badge]: https://img.shields.io/github/workflow/status/AlmostReliable/lazierae2-forge/CI?style=flat-square
[workflow_status_badge]: https://img.shields.io/github/workflow/status/AlmostReliable/lazierae2-forge/Build?style=flat-square
[workflow_status_link]: https://github.com/AlmostReliable/lazierae2-forge/actions
[license_badge]: https://img.shields.io/github/license/AlmostReliable/lazierae2-forge?style=flat-square

Expand Down

0 comments on commit c169785

Please sign in to comment.