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
+30-8Lines changed: 30 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ jobs:
9
9
build:
10
10
11
11
runs-on: windows-latest
12
+
env:
13
+
build-dir: ./bin/Release
12
14
13
15
steps:
14
16
- name: Checkout
@@ -38,10 +40,18 @@ jobs:
38
40
- name: Build Project
39
41
run: msbuild /p:Configuration=Release
40
42
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
-
43
+
# Build Installer
44
+
- name: Build Installer (NSIS)
45
+
uses: joncloud/makensis-action@v1
46
+
with:
47
+
script-file: .\bin\Release\SPEdit.nsi
48
+
include-more-plugins: true
49
+
50
+
# Compress Portable Version
51
+
- name: Compress Portable Version
52
+
run: .\bin\Release\Compress.ps1
53
+
shell: powershell
54
+
45
55
- name: Create Release
46
56
id: create_release
47
57
uses: actions/create-release@v1
@@ -53,13 +63,25 @@ jobs:
53
63
draft: false
54
64
prerelease: false
55
65
56
-
- name: Upload Release Asset
57
-
id: upload-release-asset
66
+
67
+
- name: Upload Installer
68
+
id: upload-installer
69
+
uses: actions/upload-release-asset@v1
70
+
env:
71
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72
+
with:
73
+
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
74
+
asset_path: .\bin\Rlease\SPEdit.Installer.exe
75
+
asset_name: SPEdit.Installer.exe
76
+
asset_content_type: application/octet-stream
77
+
78
+
- name: Upload Portable
79
+
id: upload-portable
58
80
uses: actions/upload-release-asset@v1
59
81
env:
60
82
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61
83
with:
62
84
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