Skip to content

Commit b88359d

Browse files
authored
Move discord automation into ci.yml (#1479)
* updating ci.yml with discord release automation * removed line
1 parent f4c0347 commit b88359d

File tree

2 files changed

+24
-29
lines changed

2 files changed

+24
-29
lines changed

.github/workflows/announce_release.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,3 +370,27 @@ jobs:
370370
uses: softprops/action-gh-release@v1
371371
with:
372372
files: 'artifact/*/Zoo*'
373+
374+
announce_release:
375+
needs: [publish-apps-release]
376+
runs-on: ubuntu-latest
377+
steps:
378+
- name: Check out code
379+
uses: actions/checkout@v4
380+
381+
- name: Set up Python
382+
uses: actions/setup-python@v5
383+
with:
384+
python-version: '3.x'
385+
386+
- name: Install dependencies
387+
run: |
388+
python -m pip install --upgrade pip
389+
pip install requests
390+
391+
- name: Announce Release
392+
env:
393+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
394+
RELEASE_VERSION: ${{ github.event.release.tag_name }}
395+
RELEASE_BODY: ${{ github.event.release.body}}
396+
run: python public/announce_release.py

0 commit comments

Comments
 (0)