File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 18
18
include :
19
19
- os : ubuntu
20
20
platform : linux
21
+ target : x86_64
21
22
- os : ubuntu
22
23
platform : linux
23
24
target : aarch64
88
89
89
90
Release :
90
91
needs : [ build, build_sdist ]
91
- # if: success() && startsWith(github.ref, 'refs/tags/')
92
- if : ${{ needs.build.result == 'success' && needs.build_sdist.result == 'success' }}
92
+ if : ${{ needs.build.result == 'success' && needs.build_sdist.result == 'success' }} && startsWith(github.ref, 'refs/tags/')
93
93
runs-on : ubuntu-latest
94
94
95
95
steps :
@@ -119,9 +119,18 @@ jobs:
119
119
[[ "${GITHUB_REF#refs/tags/}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
120
120
|| echo ::set-output name=prerelease::true
121
121
122
+ - name : Set tag
123
+ # get tag from file name graph_ml-0.1.tar.gz
124
+ id : set-tag
125
+ run : |
126
+ echo ::set-output name=tag::$(ls dist/*.tar.gz | sed -n 's/.*graph_ml-\(.*\).tar.gz/\1/p')
127
+
122
128
- name : Create Release
123
129
uses : ncipollo/release-action@v1
124
130
with :
125
131
artifacts : " dist/*"
126
132
token : ${{ secrets.GITHUB_TOKEN }}
127
- draft : false
133
+ draft : false
134
+ tag : ${{ steps.set-tag.outputs.tag }}
135
+ skipIfReleaseExists : false
136
+ replacesArtifacts : true
You can’t perform that action at this time.
0 commit comments