diff options
| -rw-r--r-- | .github/workflows/push-to-modrinth.yaml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/push-to-modrinth.yaml b/.github/workflows/push-to-modrinth.yaml index dfb6438a..7dcdf457 100644 --- a/.github/workflows/push-to-modrinth.yaml +++ b/.github/workflows/push-to-modrinth.yaml @@ -8,14 +8,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Download release file + run: | gh release download "$TAG" -p '*.jar' --repo "$REPO" env: TAG: ${{ github.event.release.tag_name }} REPO: ${{ github.repository }} GH_TOKEN: ${{ github.token }} - - run: | + - name: Set changelog + run: | printf %s "$CHANGELOG" > CHANGELOG.md - name: Set changelog env: CHANGELOG: ${{ github.event.release.body }} - name: Display file tree @@ -23,8 +24,10 @@ jobs: ls -Rla . echo ::group::Changelog cat CHANGELOG.md + echo echo ::endgroup:: - - uses: Kir-Antipov/mc-publish@v3.3 + - name: Publish to Modrinth + uses: Kir-Antipov/mc-publish@v3.3 with: modrinth-id: GGamhqbw modrinth-token: ${{ secrets.MODRINTH_TOKEN }} |
