mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-21 18:15:26 +01:00
fix: Modrinth upload action missing steps
This commit is contained in:
parent
356d67edf4
commit
d31f7e9d87
16
.github/workflows/modrinth_upload.yml
vendored
16
.github/workflows/modrinth_upload.yml
vendored
@ -19,16 +19,28 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag: ${{ steps.release.outputs.tag_name }}
|
tag: ${{ steps.release.outputs.tag_name }}
|
||||||
|
|
||||||
|
- name: Modify version scheme
|
||||||
|
run: |
|
||||||
|
if [[ "${{ steps.release.outputs.tag_name }}" == *"pre"* ]]; then
|
||||||
|
echo "Replacing prerelease version scheme with SNAPSHOT"
|
||||||
|
echo "VERSION=$(echo ${{ steps.release.outputs.tag_name }} | sed -E 's/-pre.*/-SNAPSHOT/')" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "Using release version scheme"
|
||||||
|
echo "VERSION=${{ steps.release.outputs.tag_name }}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Parse release type
|
- name: Parse release type
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ steps.release-info.outputs.prerelease }}" == "true" ]]; then
|
if [[ "${{ steps.release-info.outputs.prerelease }}" == "true" ]]; then
|
||||||
echo "Replacing prerelease version scheme with SNAPSHOT"
|
|
||||||
echo "RELEASE_TYPE=beta" >> $GITHUB_ENV
|
echo "RELEASE_TYPE=beta" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "Using release version scheme"
|
|
||||||
echo "RELEASE_TYPE=release" >> $GITHUB_ENV
|
echo "RELEASE_TYPE=release" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ steps.release-info.outputs.tag_name }}
|
||||||
|
|
||||||
- name: Upload to modrinth.com
|
- name: Upload to modrinth.com
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user