Skip to content

Commit 7b700c8

Browse files
committed
workflow
Signed-off-by: Lev Nachmanson <[email protected]>
1 parent fa25bc3 commit 7b700c8

File tree

1 file changed

+8
-28
lines changed

1 file changed

+8
-28
lines changed

.github/workflows/dotnet.yml

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -47,32 +47,12 @@ jobs:
4747
- name: aglzip
4848
run: 7z a agl.zip GraphLayout/tools/agl/bin/Release -r
4949

50-
- name: get release
51-
uses: octokit/[email protected]
52-
id: get_latest_release
50+
- name: Upload binaries to release
51+
uses: svenstaro/upload-release-action@v2
5352
with:
54-
route: GET /repos/:repository/releases/latest
55-
repository: ${{ github.repository }}
56-
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58-
- name: get upload url
59-
id: get_upload_url
60-
run: |
61-
url=$(echo "$response" | jq -r '.upload_url')
62-
echo "::set-output name=url::$url"
63-
env:
64-
response: ${{ steps.get_latest_release.outputs.data }}
65-
66-
- name: Upload a Release Asset
67-
uses: actions/[email protected]
68-
env:
69-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70-
with:
71-
# The URL for uploading assets to the release
72-
upload_url: ${{steps.get_upload_url.outputs.url}}
73-
# The path to the asset you want to upload
74-
asset_path: agl.zip
75-
# The name of the asset you want to upload
76-
asset_name: agl.zip
77-
# The content-type of the asset you want to upload. See the supported Media Types here: https://www.iana.org/assignments/media-types/media-types.xhtml for more information
78-
asset_content_type: application/zipx
53+
repo_token: ${{ secrets.GITHUB_TOKEN }}
54+
file: agl.zip
55+
asset_name: agl.zip
56+
tag: ${{ github.ref }}
57+
overwrite: true
58+
body: "The zip file of agl driver"

0 commit comments

Comments
 (0)