mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Don't post patch releases on Discord
This commit is contained in:
parent
de582cf66a
commit
2c5934d481
5
.github/workflows/buildAndDeploy.yml
vendored
5
.github/workflows/buildAndDeploy.yml
vendored
@ -67,7 +67,7 @@ jobs:
|
|||||||
./gradlew desktop:zipLinuxFilesForJar;
|
./gradlew desktop:zipLinuxFilesForJar;
|
||||||
mv desktop/build/libs/Unciv.jar deploy/Unciv.jar
|
mv desktop/build/libs/Unciv.jar deploy/Unciv.jar
|
||||||
|
|
||||||
- name: Read release.md and use it as a body of new release
|
- name: Read release.md and use it as a body of new release. This will fail for patch releases, since they have no readme.
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
||||||
id: read_release
|
id: read_release
|
||||||
@ -87,7 +87,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Post announcement on Discord
|
- name: Post announcement on Discord
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
## On patch releases, don't notify Discord
|
||||||
|
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && env.RELEASE_BODY != ''
|
||||||
env:
|
env:
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
uses: Ilshidur/action-discord@0.3.2
|
uses: Ilshidur/action-discord@0.3.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user