You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,13 @@ jobs:
10
10
name: Upload Release Asset
11
11
runs-on: windows-latest
12
12
steps:
13
+
13
14
- name: Checkout code
14
15
uses: actions/checkout@v2
15
16
- name: Build project # This would actually build your project, using zip for an example artifact
16
17
run: |
17
18
.\make.bat
19
+
18
20
- name: Create Release
19
21
id: create_release
20
22
uses: actions/create-release@v1
@@ -25,13 +27,25 @@ jobs:
25
27
release_name: Release ${{ github.ref }}
26
28
draft: false
27
29
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
30
33
uses: actions/upload-release-asset@v1
31
34
env:
32
35
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33
36
with:
34
37
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
35
38
asset_path: ./patroni-win-x64.zip
36
39
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
0 commit comments