aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-07-06 03:17:55 +0200
committerLinnea Gräf <nea@nea.moe>2024-07-06 03:17:55 +0200
commit4e1cda1d64ce60719f6ff6e60c6af4881d81fdd2 (patch)
treefae4a2baf8e26803ec510bab88732eb6958bd8d6
parente1b5f02761084867e99be5dff32fdc2583190c08 (diff)
downloadFirmament-4e1cda1d64ce60719f6ff6e60c6af4881d81fdd2.tar.gz
Firmament-4e1cda1d64ce60719f6ff6e60c6af4881d81fdd2.tar.bz2
Firmament-4e1cda1d64ce60719f6ff6e60c6af4881d81fdd2.zip
Fix github release download
[no changelog]
-rw-r--r--.github/workflows/publish-github-to-modrinth.yml37
1 files changed, 18 insertions, 19 deletions
diff --git a/.github/workflows/publish-github-to-modrinth.yml b/.github/workflows/publish-github-to-modrinth.yml
index dc42327..24aee13 100644
--- a/.github/workflows/publish-github-to-modrinth.yml
+++ b/.github/workflows/publish-github-to-modrinth.yml
@@ -11,22 +11,21 @@ jobs:
upload-to-modrinth:
runs-on: ubuntu-latest
steps:
- - uses: dsaltares/fetch-gh-release-asset@master
- with:
- version: ${{ github.event.release.id }}
- regex: true
- file: ".*\\.jar"
- target: '.'
- token: ${{ secrets.GITHUB_TOKEN }}
- - run: |
- printf %s "$CHANGELOG" > CHANGELOG.md
- env:
- CHANGELOG: ${{ github.event.release.body }}
- - uses: Kir-Antipov/mc-publish@v3.3
- with:
- modrinth-id: IJNUBZ2a
- modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
- files: "*.jar"
- loaders: fabric
- game-versions: 1.20.6
- version: ${{ github.event.release.tag_name }}
+ - run: |
+ gh release download "$TAG" -p '*.jar' --repo "$REPO"
+ env:
+ TAG: ${{ github.event.release.tag_name }}
+ REPO: ${{ github.repository }}
+ GH_TOKEN: ${{ github.token }}
+ - run: |
+ printf %s "$CHANGELOG" > CHANGELOG.md
+ env:
+ CHANGELOG: ${{ github.event.release.body }}
+ - uses: Kir-Antipov/mc-publish@v3.3
+ with:
+ modrinth-id: IJNUBZ2a
+ modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
+ files: "*.jar"
+ loaders: fabric
+ game-versions: 1.20.6
+ version: ${{ github.event.release.tag_name }}