Skip to content

Commit

Permalink
Merge pull request #15 from marcpinet/ci-fix-workflow-and-bump-versio…
Browse files Browse the repository at this point in the history
…n-to-1.0.0

ci: fix release workflow and bump version to 1.0.0
  • Loading branch information
marcpinet authored Nov 14, 2023
2 parents 43ea5a5 + d261686 commit 2f6c5b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,17 @@ jobs:
id: generate_release_notes
run: |
NEW_TAG="v${{ steps.get_version.outputs.VERSION }}"
LAST_TAG=${{ steps.get_last_tag.outputs.LAST_TAG }}
RELEASE_NOTES=$(git log $LAST_TAG...$NEW_TAG --pretty=format:"- %s" --reverse)
echo "RELEASE_NOTES=$RELEASE_NOTES" >> $GITHUB_OUTPUT
LAST_TAG=$(git describe --tags --abbrev=0 $NEW_TAG^)
# Ensure release notes do not cause format errors
RELEASE_NOTES=$(git log $LAST_TAG...$NEW_TAG --pretty=format:"- %s" --reverse | sed 's/%/%25/g; s/\r/%0D/g; s/\n/%0A/g')
echo "RELEASE_NOTES<<EOF" >> $GITHUB_OUTPUT
echo -e "$RELEASE_NOTES" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
name: "neuralnetlib ${{ steps.get_version.outputs.VERSION }}"
tag_name: ${{ steps.get_version.outputs.VERSION }}
tag_name: v${{ steps.get_version.outputs.VERSION }}
body: ${{ steps.generate_release_notes.outputs.RELEASE_NOTES }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='neuralnetlib',
version='0.4.1',
version='1.0.0',
author='Marc Pinet',
description='A simple neural network library with only numpy as dependency',
long_description=open('README.md', encoding="utf-8").read(),
Expand Down

0 comments on commit 2f6c5b7

Please sign in to comment.