Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Xikaro committed Nov 12, 2024
1 parent aece811 commit cbf4872
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,41 +71,41 @@ jobs:
game-version: ${{ inputs.minecraft_version }}
release-type: ${{ inputs.release_type }}

release-modrinth:
name: Release to Modrinth
runs-on: ubuntu-latest
steps:
- name: Check if MODRINTH_API_TOKEN exist
shell: bash
run: |
if [ "${{ secrets.MODRINTH_TOKEN }}" == '' ]; then
echo '::error::No value found for secret key `MODRINTH_TOKEN`. See https://docs.github.com/en/ actionssecurity-guides/ encrypted-secrets#creating-encrypted-secrets-for-a-repository' && exit 1
fi
# release-modrinth:
# name: Release to Modrinth
# runs-on: ubuntu-latest
# steps:
# - name: Check if MODRINTH_API_TOKEN exist
# shell: bash
# run: |
# if [ "${{ secrets.MODRINTH_TOKEN }}" == '' ]; then
# echo '::error::No value found for secret key `MODRINTH_TOKEN`. See https://docs.github.com/en/ actionssecurity-guides/ encrypted-secrets#creating-encrypted-secrets-for-a-repository' && exit 1
# fi

- name: Download artifact modrinth
uses: actions/[email protected]
with:
name: ${{ inputs.project_full_name }}-modrinth
# - name: Download artifact modrinth
# uses: actions/[email protected]
# with:
# name: ${{ inputs.project_full_name }}-modrinth

- name: Download artifact server
uses: actions/[email protected]
with:
name: ${{ inputs.project_full_name }}-serverpack
# - name: Download artifact server
# uses: actions/[email protected]
# with:
# name: ${{ inputs.project_full_name }}-serverpack

- name: Upload Modrinth
id: release
uses: Xikaro/[email protected]
with:
api-token: ${{ secrets.MODRINTH_TOKEN }}
project-id: ${{ vars.MODRINTH_ID }}
modpack-path: ${{ inputs.project_full_name }}-modrinth.mrpack
modpack-server-path: ${{ inputs.project_full_name }}-serverpack.zip
changelog: ${{ inputs.changelog }}
changelog-format: markdown
game-version: ${{ inputs.minecraft_version }}
display-name: ${{ inputs.project_full_name }}
server-display-name: ${{ inputs.project_full_name }}-serverpack
release-type: ${{ inputs.release_type }}
# - name: Upload Modrinth
# id: release
# uses: Xikaro/[email protected]
# with:
# api-token: ${{ secrets.MODRINTH_TOKEN }}
# project-id: ${{ vars.MODRINTH_ID }}
# modpack-path: ${{ inputs.project_full_name }}-modrinth.mrpack
# modpack-server-path: ${{ inputs.project_full_name }}-serverpack.zip
# changelog: ${{ inputs.changelog }}
# changelog-format: markdown
# game-version: ${{ inputs.minecraft_version }}
# display-name: ${{ inputs.project_full_name }}
# server-display-name: ${{ inputs.project_full_name }}-serverpack
# release-type: ${{ inputs.release_type }}

release-github:
name: Release to GitHub
Expand Down

0 comments on commit cbf4872

Please sign in to comment.