diff --git a/.github/actions/release/action.yaml b/.github/actions/release/action.yaml index 7de6e5d..fd095c7 100644 --- a/.github/actions/release/action.yaml +++ b/.github/actions/release/action.yaml @@ -14,13 +14,13 @@ inputs: description: "Should the Modpack Be Uploaded to CurseForge" required: true - MODRINTH_TOKEN: + MODRINTH_KEY: required: false description: "Token used to uploading modpack to Modrinth" MODRINTH_ID: required: false description: "ID used to uploading modpack to Modrinth" - CURSEFORGE_TOKEN: + CURSEFORGE_KEY: required: false description: "Token used to uploading modpack to Curseforge" CURSEFORGE_ID: @@ -100,7 +100,7 @@ runs: uses: Kir-Antipov/mc-publish@v3.2 with: modrinth-id: ${{ inputs.MODRINTH_ID }} - modrinth-token: ${{ inputs.MODRINTH_TOKEN }} + modrinth-token: ${{ inputs.MODRINTH_KEY }} loaders: ${{ env.loader }} game-versions: ${{ env.game-version }} changelog-file: CHANGELOG.release.* @@ -120,7 +120,7 @@ runs: uses: Kir-Antipov/mc-publish@v3.2 with: curseforge-id: ${{ inputs.CURSEFORGE_ID }} - curseforge-token: ${{ inputs.CURSEFORGE_TOKEN }} + curseforge-token: ${{ inputs.CURSEFORGE_KEY }} loaders: ${{ env.loader }} game-versions: ${{ env.game-version }} changelog-file: CHANGELOG.release.* diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index a2e603e..eec7e89 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -149,8 +149,8 @@ jobs: - name: Set Mod Vendors id: set-mod-vendors run: | - [[ ! -z "${{ secrets.CURSEFORGE_TOKEN }}" && ! -z "${{ secrets.CURSEFORGE_ID }}" ]] && echo "curseforge=true" >> $GITHUB_OUTPUT || echo "curseforge=false" >> $GITHUB_OUTPUT - [[ ! -z "${{ secrets.MODRINTH_TOKEN }}" && ! -z "${{ secrets.MODRINTH_ID }}" ]] && echo "modrinth=true" >> $GITHUB_OUTPUT || echo "modrinth=false" >> $GITHUB_OUTPUT + [[ ! -z "${{ secrets.CURSEFORGE_KEY }}" && ! -z "${{ secrets.CURSEFORGE_ID }}" ]] && echo "curseforge=true" >> $GITHUB_OUTPUT || echo "curseforge=false" >> $GITHUB_OUTPUT + [[ ! -z "${{ secrets.MODRINTH_KEY }}" && ! -z "${{ secrets.MODRINTH_ID }}" ]] && echo "modrinth=true" >> $GITHUB_OUTPUT || echo "modrinth=false" >> $GITHUB_OUTPUT shell: bash if: ${{ steps.release-please.outputs.releases_created }} @@ -177,9 +177,9 @@ jobs: upload-modrinth: ${{ steps.set-mod-vendors.outputs.modrinth }} upload-curse: ${{ steps.set-mod-vendors.outputs.curseforge }} MODRINTH_ID: ${{ secrets.MODRINTH_ID }} - MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} + MODRINTH_KEY: ${{ secrets.MODRINTH_KEY }} CURSEFORGE_ID: ${{ secrets.CURSEFORGE_ID }} - CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} + CURSEFORGE_KEY: ${{ secrets.CURSEFORGE_KEY }} if: | steps.release-please.outputs.releases_created && (steps.set-mod-vendors.outputs.modrinth || steps.set-mod-vendors.outputs.curseforge)