Skip to content

Commit a7abda7

Browse files
committed
[+] upload .exe asset to release
1 parent f83301e commit a7abda7

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ jobs:
1010
name: Upload Release Asset
1111
runs-on: windows-latest
1212
steps:
13+
1314
- name: Checkout code
1415
uses: actions/checkout@v2
1516
- name: Build project # This would actually build your project, using zip for an example artifact
1617
run: |
1718
.\make.bat
19+
1820
- name: Create Release
1921
id: create_release
2022
uses: actions/create-release@v1
@@ -25,13 +27,25 @@ jobs:
2527
release_name: Release ${{ github.ref }}
2628
draft: false
2729
prerelease: false
28-
- name: Upload Release Asset
29-
id: upload-release-asset
30+
31+
- name: Upload Release Asset (zip)
32+
id: upload-release-asset-zip
3033
uses: actions/upload-release-asset@v1
3134
env:
3235
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3336
with:
3437
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
3538
asset_path: ./patroni-win-x64.zip
3639
asset_name: patroni-win-x64.zip
37-
asset_content_type: application/zip
40+
asset_content_type: application/zip
41+
42+
- name: Upload Release Asset (exe)
43+
id: upload-release-asset-exe
44+
uses: actions/upload-release-asset@v1
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
with:
48+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
49+
asset_path: ./Patroni-Env-Setup.exe
50+
asset_name: Patroni-Env-Setup.exe
51+
asset_content_type: application/vnd.microsoft.portable-executable

0 commit comments

Comments
 (0)