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
+85-70Lines changed: 85 additions & 70 deletions
Original file line number
Diff line number
Diff line change
@@ -3,79 +3,94 @@ name: Publish Release
3
3
on:
4
4
push:
5
5
tags:
6
-
- '*'
6
+
- '*'
7
7
8
8
jobs:
9
9
build:
10
10
11
11
runs-on: windows-latest
12
-
12
+
13
13
steps:
14
-
- name: Checkout
15
-
uses: actions/checkout@v2
16
-
17
-
# Install the .NET Core workload
18
-
- name: Install .NET Core
19
-
uses: actions/setup-dotnet@v1
20
-
with:
21
-
dotnet-version: 3.1.100
22
-
23
-
# Nuget
24
-
- uses: nuget/setup-nuget@v1
25
-
with:
26
-
nuget-version: '5.x'
27
-
- run: nuget restore Spedit.sln
28
-
29
-
# Setup MSBuild
30
-
- name: Setup MSBuild.exe
31
-
uses: microsoft/setup-msbuild@v1.0.0
32
-
33
-
34
-
# Build Project
35
-
- name: Build Project
36
-
run: msbuild /p:Configuration=Release
37
-
38
-
# Build Installer
39
-
- name: Build Installer (NSIS)
40
-
uses: joncloud/makensis-action@v1
41
-
with:
42
-
script-file: .\bin\Release\SPEdit.nsi
43
-
44
-
# Compress Portable Version
45
-
- name: Compress Portable Version
46
-
run: .\bin\Release\Compress.ps1
47
-
shell: powershell
48
-
49
-
- name: Create Release
50
-
id: create_release
51
-
uses: actions/create-release@v1
52
-
env:
53
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54
-
with:
55
-
tag_name: ${{ github.ref }}
56
-
release_name: Release ${{ github.ref }}
57
-
draft: false
58
-
prerelease: false
59
-
60
-
61
-
- name: Upload Installer
62
-
id: upload-installer
63
-
uses: actions/upload-release-asset@v1
64
-
env:
65
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66
-
with:
67
-
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
68
-
asset_path: .\bin\Release\SPEdit.Installer.exe
69
-
asset_name: SPEdit.Installer.exe
70
-
asset_content_type: application/octet-stream
71
-
72
-
- name: Upload Portable
73
-
id: upload-portable
74
-
uses: actions/upload-release-asset@v1
75
-
env:
76
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77
-
with:
78
-
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
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\SPCode.Installer.exe
73
+
asset_name: SPCode.Installer.exe
74
+
asset_content_type: application/octet-stream
75
+
76
+
- name: Upload Portable
77
+
id: upload-portable
78
+
uses: actions/upload-release-asset@v1
79
+
env:
80
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81
+
with:
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
83
+
asset_path: .\bin\Release\SPCode.Portable.zip
84
+
asset_name: SPCode.Portable.zip
85
+
asset_content_type: application/zip
86
+
87
+
- name: Upload Updater
88
+
id: upload-updater
89
+
uses: actions/upload-release-asset@v1
90
+
env:
91
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92
+
with:
93
+
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