-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from jGaboardi/automated_release_notes
attempt automated release notes
- Loading branch information
Showing
4 changed files
with
50 additions
and
628 deletions.
There are no files selected for viewing
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
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: | ||
- "*" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.