mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-30 22:44:20 +01:00
Merge pull request #2964 from Multiverse/actions-better
This commit is contained in:
commit
f67d8efb44
6
.github/workflows/call.github_release.yml
vendored
6
.github/workflows/call.github_release.yml
vendored
@ -30,12 +30,6 @@ jobs:
|
|||||||
release_created: ${{ steps.release.outputs.release_created }}
|
release_created: ${{ steps.release.outputs.release_created }}
|
||||||
tag_name: ${{ steps.release.outputs.tag_name }}
|
tag_name: ${{ steps.release.outputs.tag_name }}
|
||||||
steps:
|
steps:
|
||||||
- name: Echo inputs
|
|
||||||
run: |
|
|
||||||
echo "release_mode: ${{ inputs.release_mode }}"
|
|
||||||
echo "version_bump: ${{ inputs.version_bump }}"
|
|
||||||
echo "promote_from: ${{ inputs.promote_from }}"
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.promote_from }}
|
ref: ${{ inputs.promote_from }}
|
||||||
|
23
.github/workflows/call.platform_uploads.yml
vendored
23
.github/workflows/call.platform_uploads.yml
vendored
@ -42,23 +42,18 @@ jobs:
|
|||||||
file: multiverse-core-${{ steps.release-info.outputs.tag_name }}.jar
|
file: multiverse-core-${{ steps.release-info.outputs.tag_name }}.jar
|
||||||
|
|
||||||
- name: Parse release type
|
- name: Parse release type
|
||||||
|
id: parse-release-type
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ steps.release-info.outputs.prerelease }}" == "true" ]]; then
|
if [[ "${{ steps.release-info.outputs.prerelease }}" == "true" ]]; then
|
||||||
echo Setting RELEASE_TYPE to Beta
|
echo Setting release_type to Beta
|
||||||
echo "RELEASE_TYPE=Beta" >> $GITHUB_ENV
|
echo "release_type=Beta" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo Setting RELEASE_TYPE to Release
|
echo Setting release_type to Release
|
||||||
echo "RELEASE_TYPE=Release" >> $GITHUB_ENV
|
echo "release_type=Release" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: echo inputs
|
|
||||||
run: |
|
|
||||||
echo "upload_modrinth: ${{ inputs.upload_modrinth }}"
|
|
||||||
echo "upload_dbo: ${{ inputs.upload_dbo }}"
|
|
||||||
echo "RELEASE_TYPE: ${{ env.RELEASE_TYPE }}"
|
|
||||||
|
|
||||||
- name: Upload to Modrinth
|
- name: Upload to Modrinth
|
||||||
if: inputs.upload_modrinth == 'true'
|
if: ${{ !cancelled() || inputs.upload_modrinth == 'true' }}
|
||||||
uses: benwoo1110/modrinth-upload-action@v1
|
uses: benwoo1110/modrinth-upload-action@v1
|
||||||
with:
|
with:
|
||||||
api_token: ${{ secrets.MODRINTH_TOKEN }}
|
api_token: ${{ secrets.MODRINTH_TOKEN }}
|
||||||
@ -68,11 +63,11 @@ jobs:
|
|||||||
name: ${{ steps.release-info.outputs.tag_name }}
|
name: ${{ steps.release-info.outputs.tag_name }}
|
||||||
changelog: ${{ steps.release-artifact.outputs.body }}
|
changelog: ${{ steps.release-artifact.outputs.body }}
|
||||||
game_versions: 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16, 1.15.2, 1.15.1, 1.15, 1.14.4, 1.14.3, 1.14.2, 1.14.1, 1.14, 1.13.2, 1.13.1, 1.13
|
game_versions: 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16, 1.15.2, 1.15.1, 1.15, 1.14.4, 1.14.3, 1.14.2, 1.14.1, 1.14, 1.13.2, 1.13.1, 1.13
|
||||||
version_type: ${{ env.RELEASE_TYPE }}
|
version_type: ${{ steps.parse-release-type.outputs.release_type }}
|
||||||
loaders: bukkit, spigot, paper
|
loaders: bukkit, spigot, paper
|
||||||
|
|
||||||
- name: Upload to DBO
|
- name: Upload to DBO
|
||||||
if: inputs.upload_dbo == 'true'
|
if: ${{ !cancelled() || inputs.upload_dbo == 'true' }}
|
||||||
uses: benwoo1110/dbo-upload-action@v1
|
uses: benwoo1110/dbo-upload-action@v1
|
||||||
with:
|
with:
|
||||||
api_token: ${{ secrets.DBO_UPLOAD_API_TOKEN }}
|
api_token: ${{ secrets.DBO_UPLOAD_API_TOKEN }}
|
||||||
@ -81,7 +76,7 @@ jobs:
|
|||||||
changelog_type: markdown
|
changelog_type: markdown
|
||||||
display_name: ${{ steps.release-info.outputs.tag_name }}
|
display_name: ${{ steps.release-info.outputs.tag_name }}
|
||||||
game_versions: 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17, 1.16, 1.15, 1.14, 1.13
|
game_versions: 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17, 1.16, 1.15, 1.14, 1.13
|
||||||
release_type: ${{ env.RELEASE_TYPE }}
|
release_type: ${{ steps.parse-release-type.outputs.release_type }}
|
||||||
project_relations: >
|
project_relations: >
|
||||||
[
|
[
|
||||||
{"slug": "multiverse-portals", "type": "optionalDependency"},
|
{"slug": "multiverse-portals", "type": "optionalDependency"},
|
||||||
|
Loading…
Reference in New Issue
Block a user