File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,22 @@ jobs:
3838 run : |
3939 just lintc
4040 if [[ $? -ne 0 ]]; then echo "Run just format to fix"; fi
41+ release :
42+ name : " Release"
43+ runs-on : ubuntu-latest
44+ if : github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v')
45+ steps :
46+ - name : Checkout
47+ uses : actions/checkout@v2
48+ - name : Setup | just
49+ uses : extractions/setup-just@v1
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4152 - name : Release | Draft Release Notes
42- if : github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v')
4353 run : |
4454 just draft-release > RELEASE_NOTES.txt
45- cp standalont_ftp .py ftp.py
55+ cp standalone_ftp .py ftp.py
4656 - name : Release | Create Draft Release
47- if : github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v')
4857 uses : softprops/action-gh-release@v1
4958 with :
5059 draft : true
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ publish:
7171
7272# Display draft release notes
7373draft-release :
74- @ sed -n $(grep -n " LATEST" CHANGELOG.md | cut -d " :" -f 1 )' ,{{ CHANGELOG_LATEST_LAST}} p;{{ CHANGELOG_LATEST_LAST}} q' CHANGELOG.md | head -n -1
74+ @ sed -n $(grep -n " LATEST" CHANGELOG.md | cut -d " :" -f 1 )' ,{{ CHANGELOG_LATEST_LAST}} p;{{ CHANGELOG_LATEST_LAST}} q' CHANGELOG.md | head -n -1 | tail -n + 2
7575
7676# Clean output
7777clean :
You can’t perform that action at this time.
0 commit comments