Fix github release download
[no changelog]
This commit is contained in:
37
.github/workflows/publish-github-to-modrinth.yml
vendored
37
.github/workflows/publish-github-to-modrinth.yml
vendored
@@ -11,22 +11,21 @@ jobs:
|
|||||||
upload-to-modrinth:
|
upload-to-modrinth:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: dsaltares/fetch-gh-release-asset@master
|
- run: |
|
||||||
with:
|
gh release download "$TAG" -p '*.jar' --repo "$REPO"
|
||||||
version: ${{ github.event.release.id }}
|
env:
|
||||||
regex: true
|
TAG: ${{ github.event.release.tag_name }}
|
||||||
file: ".*\\.jar"
|
REPO: ${{ github.repository }}
|
||||||
target: '.'
|
GH_TOKEN: ${{ github.token }}
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
- run: |
|
||||||
- run: |
|
printf %s "$CHANGELOG" > CHANGELOG.md
|
||||||
printf %s "$CHANGELOG" > CHANGELOG.md
|
env:
|
||||||
env:
|
CHANGELOG: ${{ github.event.release.body }}
|
||||||
CHANGELOG: ${{ github.event.release.body }}
|
- uses: Kir-Antipov/mc-publish@v3.3
|
||||||
- uses: Kir-Antipov/mc-publish@v3.3
|
with:
|
||||||
with:
|
modrinth-id: IJNUBZ2a
|
||||||
modrinth-id: IJNUBZ2a
|
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
|
||||||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
|
files: "*.jar"
|
||||||
files: "*.jar"
|
loaders: fabric
|
||||||
loaders: fabric
|
game-versions: 1.20.6
|
||||||
game-versions: 1.20.6
|
version: ${{ github.event.release.tag_name }}
|
||||||
version: ${{ github.event.release.tag_name }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user