@@ -54,23 +54,34 @@ jobs:
5454 token : ${{secrets.CODECOV_TOKEN}}
5555 file : ./coverage/lcov.info
5656
57- # Parse a tag from the commit message
58- - id : get-tag
59- shell : python3 {0}
60- run : |
61- import json
62- import os
63- with open(os.environ['GITHUB_EVENT_PATH']) as fh:
64- event = json.load(fh)
65- tag = event['head_commit']['message'].split()[0]
66- - uses : actions/create-release@v1
57+ # # Parse a tag from the commit message
58+ # - id: get-tag
59+ # shell: python3 {0}
60+ # run: |
61+ # import json
62+ # import os
63+ # with open(os.environ['GITHUB_EVENT_PATH']) as fh:
64+ # event = json.load(fh)
65+ # version = event['head_commit']['message'].split()[0]
66+ # print("::set-output name=tag::" + version)
67+
68+ # Get current datetime in ISO format
69+ - id : date
70+ run : echo "::set-output name=date::$(date -u +'%Y-%m-%d')"
71+
72+ # Create a Release
73+ - uses : softprops/action-gh-release@v1
6774 env :
68- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
75+ # This token is provided by Actions, you do not need to create your own token
76+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6977 with :
70- tag_name : ${{ steps.get-tag.outputs.TAG }}
71- release_name : Release ${{ steps.get-tag.outputs.TAG }}
72- # body_path: CHANGELOG.md
78+ tag_name : ${{ steps.date.outputs.date }}v${{ github.run_number }}
79+ name : ${{ steps.date.outputs.date }}v${{ github.run_number }}
80+ # tag_name: ${{ github.event.commits[0].message }}
81+ # name: ${{ github.event.commits[0].message }}
82+ # tag_name: v${{ steps.get-tag.outputs.tag }}
83+ # name: ${{ steps.get-tag.outputs.tag }}
7384 body : |
74- See CHANGELOG.md
85+ See CHANGELOG.md
7586 draft : false
76- prerelease : false
87+ prerelease : false
0 commit comments