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
{{ message }}
This repository was archived by the owner on Sep 11, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+29-9Lines changed: 29 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ jobs:
9
9
build:
10
10
11
11
runs-on: windows-latest
12
-
12
+
13
13
steps:
14
14
- name: Checkout
15
15
uses: actions/checkout@v2
@@ -38,10 +38,18 @@ jobs:
38
38
- name: Build Project
39
39
run: msbuild /p:Configuration=Release
40
40
41
-
# Zip Relase
42
-
- name: Compress files # This would actually build your project, using zip for an example artifact
43
-
run: zip --junk-paths "SPEdit-${GITHUB_REF##*/}" bin/Release/*
44
-
41
+
# Build Installer
42
+
- name: Build Installer (NSIS)
43
+
uses: joncloud/makensis-action@v1
44
+
with:
45
+
script-file: .\bin\Release\SPEdit.nsi
46
+
include-more-plugins: true
47
+
48
+
# Compress Portable Version
49
+
- name: Compress Portable Version
50
+
run: .\bin\Release\Compress.ps1
51
+
shell: powershell
52
+
45
53
- name: Create Release
46
54
id: create_release
47
55
uses: actions/create-release@v1
@@ -53,13 +61,25 @@ jobs:
53
61
draft: false
54
62
prerelease: false
55
63
56
-
- name: Upload Release Asset
57
-
id: upload-release-asset
64
+
65
+
- name: Upload Installer
66
+
id: upload-installer
67
+
uses: actions/upload-release-asset@v1
68
+
env:
69
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70
+
with:
71
+
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
72
+
asset_path: .\bin\Release\SPEdit.Installer.exe
73
+
asset_name: SPEdit.Installer.exe
74
+
asset_content_type: application/octet-stream
75
+
76
+
- name: Upload Portable
77
+
id: upload-portable
58
78
uses: actions/upload-release-asset@v1
59
79
env:
60
80
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61
81
with:
62
82
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