forked from lennartb-/AssemblyInformation
-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (41 loc) · 1.72 KB
/
Copy pathrelease.yml
File metadata and controls
52 lines (41 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Publish single-file exe
run: dotnet publish AssemblyInformation/AssemblyInformation.csproj -c Release -r win-x64 --no-self-contained -p:PublishSingleFile=true -o publish
- name: Create release zip
run: |
$stagingDir = "staging"
New-Item -ItemType Directory -Path $stagingDir
Copy-Item publish\AssemblyInformation.exe $stagingDir\
Copy-Item install.cmd $stagingDir\
Copy-Item uninstall.cmd $stagingDir\
Compress-Archive -Path $stagingDir\* -DestinationPath AssemblyInformation-${{ github.ref_name }}-win-x64.zip
shell: pwsh
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
body: |
**[Download AssemblyInformation-${{ github.ref_name }}-win-x64.zip](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/AssemblyInformation-${{ github.ref_name }}-win-x64.zip)**
**Requires:** [.NET 10 Desktop Runtime](https://dotnet.microsoft.com/download/dotnet/10.0) or newer
### Installation
1. Download and extract the zip
2. Run `install.cmd` as Administrator
3. Right-click any .dll or .exe in Explorer → "Assembly Information"
To uninstall, run `uninstall.cmd` as Administrator.
files: |
AssemblyInformation-${{ github.ref_name }}-win-x64.zip