mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-08 09:33:59 +00:00
Update Github release from changelog
This commit is contained in:
29
.github/workflows/github-release.yml
vendored
Normal file
29
.github/workflows/github-release.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Prepare release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'release-*'
|
||||
|
||||
jobs:
|
||||
prepare-release:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Prepare changelog
|
||||
id: changelog
|
||||
run: |
|
||||
PICARD_VERSION=$(python -c "import picard; print(picard.__version__)")
|
||||
echo "::set-output name=version::"$PICARD_VERSION
|
||||
./scripts/package/changelog-for-version.py $PICARD_VERSION > changes-$PICARD_VERSION.txt
|
||||
- name: Update release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
name: MusicBrainz Picard ${{ steps.changelog.outputs.version }}
|
||||
body_path: changes-${{ steps.changelog.outputs.version }}.txt
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user