Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 973c90c

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 605cfc0 + 8b0d970 commit 973c90c

File tree

1 file changed

+29
-9
lines changed

1 file changed

+29
-9
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010

1111
runs-on: windows-latest
12-
12+
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v2
@@ -38,10 +38,18 @@ jobs:
3838
- name: Build Project
3939
run: msbuild /p:Configuration=Release
4040

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+
4553
- name: Create Release
4654
id: create_release
4755
uses: actions/create-release@v1
@@ -53,13 +61,25 @@ jobs:
5361
draft: false
5462
prerelease: false
5563

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
5878
uses: actions/upload-release-asset@v1
5979
env:
6080
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6181
with:
6282
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
63-
asset_path: ./SPEdit-${GITHUB_REF##*/}.zip
64-
asset_name: SPEdit-${GITHUB_REF##*/}.zip
83+
asset_path: .\bin\Release\SPEdit.Portable.zip
84+
asset_name: SPEdit.Portable.zip
6585
asset_content_type: application/zip

0 commit comments

Comments
 (0)