Update build.yml
This commit is contained in:
parent
31adef602c
commit
54534abaad
1 changed files with 5 additions and 7 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -26,7 +26,7 @@ jobs:
|
|||
changelog: ${{ steps.changelog.outputs.description }}
|
||||
diff: ${{ steps.read_diff.outputs.diff }}
|
||||
exists: ${{ steps.check_tag.outputs.exists }}
|
||||
release_exists: ${{ steps.check_tag.outputs.exists == 'false' && env.DEV_ENVIRONMENT }}
|
||||
make_release: ${{ steps.check_tag.outputs.exists == 'false' && env.DEV_ENVIRONMENT == 'false' }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
@ -192,7 +192,7 @@ jobs:
|
|||
|
||||
📃 **Dev Environment**: `${{ env.DEV_ENVIRONMENT }}`
|
||||
📃 **Tag Exists**: `${{ steps.check_tag.outputs.exists }}`
|
||||
📃 **A release will be made**: `${{ steps.check_tag.outputs.exists == 'false' && env.DEV_ENVIRONMENT }}`
|
||||
📃 **Make Release**: `${{ steps.check_tag.outputs.exists == 'false' && env.DEV_ENVIRONMENT == 'false' }}`
|
||||
|
||||
|
||||
${{ steps.changelog.outputs.description }}
|
||||
|
|
@ -214,10 +214,8 @@ jobs:
|
|||
echo "Project Version: ${{ needs.info.outputs.project_version }}"
|
||||
echo "Project Name: ${{ needs.info.outputs.project_name }}"
|
||||
echo "Project Full Name: ${{ needs.info.outputs.project_full_name }}"
|
||||
echo "Changelog: ${{ needs.info.outputs.changelog }}"
|
||||
echo "Diff: ${{ needs.info.outputs.diff }}"
|
||||
echo "Exists: ${{ needs.info.outputs.exists }}"
|
||||
echo "Release Exists: ${{ needs.info.outputs.release_exists }}"
|
||||
echo "Release Exists: ${{ needs.info.outputs.make_release }}"
|
||||
echo "Dev Environment: ${{ env.DEV_ENVIRONMENT }}"
|
||||
|
||||
- name: 🔄 Replace strings
|
||||
|
|
@ -363,7 +361,7 @@ jobs:
|
|||
name: 🚀 Release to GitHub
|
||||
needs: [info, build-modpack, build-server, build-multimc]
|
||||
runs-on: ubuntu-latest
|
||||
if: needs.info.outputs.release_exists == 'false'
|
||||
if: ${{ needs.info.outputs.make_release }}
|
||||
outputs:
|
||||
url: ${{ steps.release.outputs.url }}
|
||||
|
||||
|
|
@ -432,7 +430,7 @@ jobs:
|
|||
name: 🚀 Release to CurseForge
|
||||
needs: [info, build-modpack, build-server, release-github]
|
||||
runs-on: ubuntu-latest
|
||||
if: needs.info.outputs.release_exists == 'false'
|
||||
if: ${{ needs.info.outputs.make_release }}
|
||||
outputs:
|
||||
id: ${{ steps.release.outputs.id }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue