File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build & Publish
2+
3+ on :
4+ push :
5+ workflow_dispatch :
6+
7+ jobs :
8+ workflow :
9+ runs-on : windows-latest
10+
11+ steps :
12+ - uses : actions/checkout@v2
13+
14+ - name : Setup .NET
15+ uses : actions/setup-dotnet@v1
16+ with :
17+ dotnet-version : 7.0.x
18+
19+ - name : Restore dependencies
20+ run : dotnet restore
21+
22+ - name : Build
23+ run : dotnet build --no-restore -c Release
24+
25+ - name : Upload Artifact
26+ uses : actions/upload-artifact@v2
27+ with :
28+ name : ChefKeys
29+ path : Output/Release/
30+
31+ # - name: Publish To NuGet
32+ # if: ${{ github.ref == 'refs/heads/main' }}
33+ # run: nuget push Output\Release\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.PUBLISH}}
34+
35+ # - name: Get Version
36+ # if: ${{ github.ref == 'refs/heads/main' }}
37+ # run: |
38+ # $version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("Output\Release\ChefKeys.dll").ProductVersion
39+ # echo "RELEASE_VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
40+
41+ # - name: Publish To GitHub Releases
42+ # if: ${{ github.ref == 'refs/heads/main' }}
43+ # uses: softprops/action-gh-release@v1
44+ # with:
45+ # files: "Output\\Release\\*.nupkg"
46+ # tag_name: "v${{ env.RELEASE_VERSION }}"
You can’t perform that action at this time.
0 commit comments