Skip to content

Commit

Permalink
updating builds not to autoreport releases
Browse files Browse the repository at this point in the history
  • Loading branch information
avivbeeri committed Mar 14, 2021
1 parent dcb2f5c commit 9810f66
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,22 +180,3 @@ jobs:
asset_path: ./dome-macosx-x64.zip
asset_name: dome-${{github.event.release.tag_name}}-macosx-x64.zip
asset_content_type: application/zip
notify-discord:
runs-on: ubuntu-latest
if: ${{ github.event.action == 'published' }}
needs: [ release-artifacts ]
steps:
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_EMBEDS: >
[{
"title": "New Release: '${{github.event.release.name}}' is now available for download!",
"url": "${{github.event.release.html_url}}",
"author": {
"name": "${{github.event.release.author.login}}",
"url": "${{github.event.release.author.html_url}}",
"icon_url": "${{github.event.release.author.avatar_url}}"
}
}]
uses: Ilshidur/action-discord@0.3.0
24 changes: 23 additions & 1 deletion .github/workflows/itch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
# This workflow contains a single job called "build"

build:
itch-release:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -44,3 +44,25 @@ jobs:
ITCH_USER: avivbeeri
VERSION: ${{steps.get-id.outputs.id}}
PACKAGE: dome-${{steps.fetch-latest-release.outputs.tag_name}}-${{matrix.platform}}.zip

notify-discord:
runs-on: ubuntu-latest
needs: [ release-artifacts ]
steps:
- id: fetch-latest-release
uses: thebritican/fetch-latest-release@v2.0.0
with:
github_token: ${{ github.token }}
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_EMBEDS: >
[{
"title": "New Release: '${{steps.fetch-latest-release.outputs.tag_name}}' is now available for download!",
"url": "${{steps.fetch-latest-release.outputs.html_url}}",
"author": {
"name": "${{steps.fetch-latest-release.outputs_login}}",
"url": "${{steps.fetch-latest-release.outputs.html_url}}"
}
}]
uses: Ilshidur/action-discord@0.3.0

0 comments on commit 9810f66

Please sign in to comment.