File tree 1 file changed +5
-14
lines changed 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change 29
29
# Set to force version number, e.g., when no tag exists.
30
30
# RG_VERSION: TEST-0.0.0
31
31
outputs :
32
- upload_url : ${{ steps.release.outputs.upload_url }}
33
32
rg_version : ${{ env.RG_VERSION }}
34
33
steps :
34
+ - uses : actions/checkout@v3
35
35
- name : Get the release version from the tag
36
36
shell : bash
37
37
if : env.RG_VERSION == ''
42
42
echo "RG_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
43
43
echo "version is: ${{ env.RG_VERSION }}"
44
44
- name : Create GitHub release
45
- id : release
46
- uses : actions/create-release@v1
47
45
env :
48
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
- with :
50
- tag_name : ${{ env.RG_VERSION }}
51
- release_name : ${{ env.RG_VERSION }}
46
+ GH_TOKEN : ${{ github.token }}
47
+ run : gh release create ${{ env.RG_VERSION }}
52
48
53
49
build-release :
54
50
name : build-release
@@ -170,11 +166,6 @@ jobs:
170
166
fi
171
167
172
168
- name : Upload release archive
173
-
174
169
env :
175
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
176
- with :
177
- upload_url : ${{ needs.create-release.outputs.upload_url }}
178
- asset_path : ${{ env.ASSET }}
179
- asset_name : ${{ env.ASSET }}
180
- asset_content_type : application/octet-stream
170
+ GH_TOKEN : ${{ github.token }}
171
+ run : gh release upload ${{ needs.create-release.outputs.rg_version }} ${{ env.ASSET }}
You can’t perform that action at this time.
0 commit comments