Update CI script

This commit is contained in:
Joshua Granick
2021-01-06 11:15:31 -08:00
parent ed06e50428
commit d3403b95c2

View File

@@ -503,9 +503,9 @@ jobs:
haxelib run lime setup -alias -y -nocffi
- name: Rebuild Lime
run: |
lime rebuild windows -32 -release -verbose -nocolor
lime rebuild windows -64 -release -verbose -nocolor
run: |
lime rebuild windows -32 -release -verbose -nocolor
lime rebuild windows -64 -release -verbose -nocolor
- name: Create Lime samples
run: |
@@ -541,3 +541,25 @@ jobs:
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#FF6562"
message: "https://github.com/haxelime/lime/actions/runs/${{ GITHUB_RUN_ID }}\nCI build failed."
test-notify-discord:
if: always()
steps:
- name: Notify Discord (success)
uses: appleboy/discord-action@master
if: github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#00C07F"
message: "<a href="https://github.com/haxelime/lime/actions/runs/${{ GITHUB_RUN_ID }}">CI build succeeded.</a>"
- name: Notify Discord (failure)
uses: appleboy/discord-action@master
if: failure() && (github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name)
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#FF6562"
message: "https://github.com/haxelime/lime/actions/runs/${{ GITHUB_RUN_ID }}\nCI build failed."