Skip to content

Commit

Permalink
Updated GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Srdjan-V committed Oct 11, 2022
1 parent 2e3bca5 commit 910af11
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/curseforge_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,19 @@ jobs:
file: "${{ steps.get_mod_name.outputs.mod_name }}-${{ steps.get_version.outputs.version }}.jar"
token: ${{ secrets.GITHUB_TOKEN }}

- name: Retrieve Source from Latest Release
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: "${{ github.repository }}"
version: "tags/v${{ steps.get_version.outputs.version }}"
file: "${{ steps.get_mod_name.outputs.mod_name }}-${{ steps.get_version.outputs.version }}-sources.jar"
token: ${{ secrets.GITHUB_TOKEN }}

#See https://github.com/itsmeow/curseforge-upload#usagearguments for more information
- name: Create CurseForge Release
uses: itsmeow/curseforge-upload@v3
with:
game_versions: "Minecraft 1.12.2,Forge"
game_versions: "Minecraft 1.12:1.12.2,Forge"
game_endpoint: "minecraft"
release_type: "release"
changelog: "Changelog is available [here](https://github.com/${{ github.repository }}/releases/tag/v${{ steps.get_version.outputs.version }})."
Expand All @@ -45,3 +53,13 @@ jobs:
file_path: "${{ steps.get_mod_name.outputs.mod_name }}-${{ steps.get_version.outputs.version }}.jar"
project_id: "${{ secrets.CURSEFORGE_PROJECT_ID }}"
token: "${{ secrets.CURSEFORGE_API_KEY }}"

- name: Create CurseForge Sources Release
uses: itsmeow/curseforge-upload@v3
with:
game_endpoint: "minecraft"
release_type: "release"
parent_file_id: "${{ steps.release-curseforge.outputs.id }}"
file_path: "${{ steps.get_mod_name.outputs.mod_name }}-${{ steps.get_version.outputs.version }}-sources.jar"
project_id: "${{ secrets.CURSEFORGE_PROJECT_ID }}"
token: "${{ secrets.CURSEFORGE_API_KEY }}"

0 comments on commit 910af11

Please sign in to comment.