update changelog and change version to 2.2.14 #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release PyCaption on GitHub | |
on: | |
push: | |
tags: | |
- "[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
call-unit-tests-workflow: | |
name: Run unit tests | |
uses: pbs/pycaption/.github/workflows/unit_tests.yml@main | |
secrets: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }} | |
create-release: | |
name: Release PyCaption on GitHub | |
needs: call-unit-tests-workflow | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Extract release notes for current version | |
env: | |
TAG: ${{ github.ref }} | |
run: | | |
sudo apt-get install -y --no-install-recommends pandoc | |
pandoc docs/changelog.rst -f rst -t gfm -o changelog.md | |
sed -n "/## ${TAG#refs/tags/}/,/## /p" changelog.md | sed -e "/## /d" >> notes.md | |
- name: Create release on GitHub | |
run: gh release create ${{ github.ref }} --notes-file notes.md | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |