@@ -85,37 +85,23 @@ jobs:
85
85
- id : dist
86
86
uses : casperdcl/deploy-pypi@v2
87
87
with :
88
- build : true
88
+ pip : true
89
89
gpg_key : ${{ secrets.GPG_KEY }}
90
90
password : ${{ secrets.PYPI_TOKEN }}
91
- upload : ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}
92
- - name : Changelog
93
- run : git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD > _CHANGES.md
94
- - if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
95
- id : create_release
96
- uses : actions/create-release@v1
91
+ upload : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
92
+ - id : meta
93
+ name : Changelog
94
+ run : |
95
+ echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
96
+ git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD > _CHANGES.md
97
+ - if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
98
+ uses : softprops/action-gh-release@v1
97
99
env :
98
100
GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
99
101
with :
100
- tag_name : ${{ github.ref }}
101
- release_name : spm12 ${{ github.ref }} beta
102
+ name : spm12 ${{ steps.meta.outputs.tag }} beta
102
103
body_path : _CHANGES.md
103
104
draft : true
104
- - if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
105
- uses : actions/upload-release-asset@v1
106
- env :
107
- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
108
- with :
109
- upload_url : ${{ steps.create_release.outputs.upload_url }}
110
- asset_path : dist/${{ steps.dist.outputs.whl }}
111
- asset_name : ${{ steps.dist.outputs.whl }}
112
- asset_content_type : application/zip
113
- - if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
114
- uses : actions/upload-release-asset@v1
115
- env :
116
- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
117
- with :
118
- upload_url : ${{ steps.create_release.outputs.upload_url }}
119
- asset_path : dist/${{ steps.dist.outputs.whl_asc }}
120
- asset_name : ${{ steps.dist.outputs.whl_asc }}
121
- asset_content_type : text/plain
105
+ files : |
106
+ dist/${{ steps.dist.outputs.whl }}
107
+ dist/${{ steps.dist.outputs.whl_asc }}
0 commit comments