mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 23:24:09 +00:00
release workflow: add manual trigger, use announceybot.exe
This commit is contained in:
parent
8581057362
commit
d8e8e4c1a9
2 changed files with 5 additions and 14 deletions
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
|
@ -1,10 +1,11 @@
|
||||||
name: Create Release, update README, send announceybot
|
name: Create Release, update README, send announcement
|
||||||
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -17,16 +18,6 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
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
|
- name: Set tag name
|
||||||
id: tag
|
id: tag
|
||||||
run: |
|
run: |
|
||||||
|
@ -44,7 +35,7 @@ jobs:
|
||||||
- name: Generate release notes
|
- name: Generate release notes
|
||||||
id: release_notes
|
id: release_notes
|
||||||
run: |
|
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
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
@ -62,7 +53,7 @@ jobs:
|
||||||
TAG_NAME: ${{ steps.tag.outputs.version }}
|
TAG_NAME: ${{ steps.tag.outputs.version }}
|
||||||
WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||||
run: |
|
run: |
|
||||||
python tools/announceybot/announceybot.py "${TAG_NAME}"
|
tools/announceybot.exe announce "${TAG_NAME}"
|
||||||
|
|
||||||
|
|
||||||
# README update
|
# README update
|
||||||
|
@ -76,7 +67,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TAG_NAME: ${{ steps.tag.outputs.version }}
|
TAG_NAME: ${{ steps.tag.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
python tools/announceybot/update_readme.py "${TAG_NAME}"
|
tools/announceybot.exe update-readme "${TAG_NAME}"
|
||||||
|
|
||||||
- name: Commit and push if it has changed
|
- name: Commit and push if it has changed
|
||||||
run: |
|
run: |
|
||||||
|
|
BIN
tools/announceybot.exe
Executable file
BIN
tools/announceybot.exe
Executable file
Binary file not shown.
Loading…
Add table
Reference in a new issue