File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Create Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ jobs :
9+ create-release :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v3
14+
15+ - name : Get version from tag
16+ id : tag_name
17+ run : |
18+ echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
19+
20+ - name : Get changelog entry
21+ id : changelog
22+ run : |
23+ VERSION=${{ steps.tag_name.outputs.VERSION }}
24+ CHANGELOG=$(sed -n "/## \[$VERSION\]/,/## \[/p" CHANGELOG.md | head -n -1)
25+ echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
26+ echo "$CHANGELOG" >> $GITHUB_OUTPUT
27+ echo "EOF" >> $GITHUB_OUTPUT
28+
29+ - name : Create Release
30+ uses : actions/create-release@v1
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ with :
34+ tag_name : ${{ github.ref }}
35+ release_name : Release ${{ steps.tag_name.outputs.VERSION }}
36+ body : ${{ steps.changelog.outputs.CHANGELOG }}
37+ draft : false
38+ prerelease : false
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 66setup (
77 name = "steadfast" ,
88 version = "0.1.0" ,
9- author = "Your Name " ,
9+ author = "Md Mojno Miya " ,
1010 author_email = "your.email@example.com" ,
1111 description = "Python SDK for Steadfast Courier API" ,
1212 long_description = long_description ,
13- long_description_content_type = "text/markdown" ,
14- url = "https://github.com/yourusername/steadfast-python" ,
1513 packages = find_packages (),
1614 classifiers = [
1715 "Programming Language :: Python :: 3" ,
You can’t perform that action at this time.
0 commit comments