Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Updated github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gonace committed Sep 27, 2023
1 parent 348c9e3 commit c8b182b
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build laget.HashId/laget.HashId.csproj --no-restore --configuration Release
- name: Publish
uses: laget-se/publish-nuget@v2.7.2
with:
INCLUDE_SYMBOLS: true
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
NUSPEC_FILE: laget.HashId.nuspec
PROJECT_FILE_PATH: laget.HashId/laget.HashId.csproj
VERSION_STATIC: "1.4.${{github.run_number}}"
- run: dotnet restore
- run: dotnet build --configuration Release laget.HashId/laget.HashId.csproj
- run: dotnet pack --configuration Release laget.HashId/laget.HashId.csproj --no-build -p:Version=${{vars.VERSION}}.${{github.run_number}} -p:PackageVersion=${{vars.VERSION}}.${{github.run_number}} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:NuspecFile=laget.HashId.nuspec
- run: dotnet nuget push laget.HashId/bin/Release/laget.HashId.${{vars.VERSION}}.${{github.run_number}}.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit c8b182b

Please sign in to comment.