Skip to content

Commit

Permalink
Merge pull request #87 from jGaboardi/automated_release_notes
Browse files Browse the repository at this point in the history
attempt automated release notes
  • Loading branch information
jGaboardi authored Oct 13, 2021
2 parents 131b945 + 106d4f2 commit f3bf0e3
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 628 deletions.
19 changes: 19 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- octocat
- dependabot
categories:
- title: Breaking Changes 🛠
labels:
- Semver-Major
- breaking-change
- title: Exciting New Features 🎉
labels:
- Semver-Minor
- enhancement
- title: Other Changes
labels:
- "*"
52 changes: 31 additions & 21 deletions .github/workflows/release_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,39 @@ jobs:
pip install setuptools wheel twine jupyter urllib3 pandas pyyaml
python setup.py sdist bdist_wheel
- name: run Changelog
run: |
jupyter nbconvert --to notebook --execute --inplace --ExecutePreprocessor.timeout=-1 --ExecutePreprocessor.kernel_name=python3 tools/gitcount.ipynb
- name: cat Changelog
uses: pCYSl5EDgo/cat@master
id: changetxt
with:
path: ./tools/changelog.md
env:
TEXT: ${{ steps.changetxt.outputs.text }}

- name: Get the tag name
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
#- name: run Changelog
# run: |
# jupyter nbconvert --to notebook --execute --inplace --ExecutePreprocessor.timeout=-1 #--ExecutePreprocessor.kernel_name=python3 tools/gitcount.ipynb
#
#- name: cat Changelog
# uses: pCYSl5EDgo/cat@master
# id: changetxt
# with:
# path: ./tools/changelog.md
# env:
# TEXT: ${{ steps.changetxt.outputs.text }}
#
#- name: Get the tag name
# run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
#
#- name: Release
# uses: softprops/action-gh-release@v1
# with:
# #body: ${{ steps.changetxt.outputs.text }}
# #body_path: ${{ steps.changetxt.outputs.path }}
# name: Release ${{ env.TAG }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release
uses: softprops/action-gh-release@v1
- name: Create Release Notes
uses: actions/[email protected]
with:
body: ${{ steps.changetxt.outputs.text }}
body_path: ${{ steps.changetxt.outputs.path }}
name: Release ${{ env.TAG }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
await github.request(`POST /repos/${{ github.repository }}/releases`, {
tag_name: "${{ github.ref }}",
generate_release_notes: true
});
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
Expand Down
86 changes: 0 additions & 86 deletions tools/changelog_0.2.0.md

This file was deleted.

Loading

0 comments on commit f3bf0e3

Please sign in to comment.