File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Build Release
2
2
on :
3
3
release :
4
- types : [ created, published, edited ]
4
+ types : [ published, edited ]
5
5
6
6
jobs :
7
7
build :
@@ -30,13 +30,22 @@ jobs:
30
30
GOOS : ${{ matrix.goos }}
31
31
run : go build -o traffic-simulator_${{ matrix.goos }}_${{ matrix.goarch }} .
32
32
33
+ - name : Get release
34
+ id : get_release
35
+ uses : PouuleT/get-release-action@master
36
+ env :
37
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
+
39
+ - name : Test release
40
+ run : echo "${{ steps.get_release.outputs.upload_url }}"
41
+
33
42
- name : Upload Release Asset
34
43
id : upload-release-asset
35
44
uses : actions/upload-release-asset@v1
36
45
env :
37
46
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
47
with :
39
- upload_url : https://uploads.github.com/repos/ ${{ github.repository }}/releases/${{ github.ref }}/assets{?name,label }
48
+ upload_url : ${{ steps.get_release.outputs.upload_url } }
40
49
asset_path : traffic-simulator_${{ matrix.goos }}_${{ matrix.goarch }}
41
50
asset_name : traffic-simulator_${{ matrix.goos }}_${{ matrix.goarch }}
42
51
asset_content_type : application/octet-stream
You can’t perform that action at this time.
0 commit comments