File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : .NET Release
2+
3+ on :
4+ workflow_dispatch :
5+
6+ concurrency :
7+ group : ${{ github.workflow }}-${{ github.ref }}
8+ cancel-in-progress : true
9+
10+ jobs :
11+ publish :
12+ runs-on : windows-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 0
17+ - uses : actions/cache@v4
18+ with :
19+ path : ~/.nuget/packages
20+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
21+ restore-keys : |
22+ ${{ runner.os }}-nuget-
23+ - name : Setup .NET
24+ uses : actions/setup-dotnet@v4
25+ with :
26+ dotnet-version : 8.0.x
27+ - name : Determine tag
28+ id : tag
29+ run : |
30+ $date=(Get-Date -Format 'yyyy-MM-dd')
31+ "tag=$date" >> $env:GITHUB_ENV
32+ "ZipFileName=LockShowWindowContents-$date.zip" >> $env:GITHUB_ENV
33+ - name : Publish LockShowWindowContents
34+ run : |
35+ dotnet publish LockShowWindowContents\LockShowWindowContents.csproj -c Release -r win-x64 -p:IsCI=true -p:PublishSingleFile=true -o publish
36+ Compress-Archive -Path README.md,LICENSE.md,publish\* -Destination $env:ZipFileName
37+ - name : Upload Release
38+ uses : softprops/action-gh-release@v2
39+ with :
40+ tag_name : ${{ env.tag }}
41+ files : LockShowWindowContents-*.zip
You can’t perform that action at this time.
0 commit comments