Skip to content

Commit

Permalink
release workflow: add manual trigger, use announceybot.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
renerocksai committed May 22, 2023
1 parent 8581057 commit d8e8e4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Create Release, update README, send announceybot
name: Create Release, update README, send announcement


on:
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
build:
Expand All @@ -17,16 +18,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install discord-webhook
- name: Set tag name
id: tag
run: |
Expand All @@ -44,7 +35,7 @@ jobs:
- name: Generate release notes
id: release_notes
run: |
python tools/announceybot/generate_releasenotes.py "${{ steps.tag.outputs.version }}" > relnotes.md
tools/announceybot.exe release-notes "${{ steps.tag.outputs.version }}" > relnotes.md
- name: Create Release
id: create_release
Expand All @@ -62,7 +53,7 @@ jobs:
TAG_NAME: ${{ steps.tag.outputs.version }}
WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
run: |
python tools/announceybot/announceybot.py "${TAG_NAME}"
tools/announceybot.exe announce "${TAG_NAME}"
# README update
Expand All @@ -76,7 +67,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ steps.tag.outputs.version }}
run: |
python tools/announceybot/update_readme.py "${TAG_NAME}"
tools/announceybot.exe update-readme "${TAG_NAME}"
- name: Commit and push if it has changed
run: |
Expand Down
Binary file added tools/announceybot.exe
Binary file not shown.

0 comments on commit d8e8e4c

Please sign in to comment.