Skip to content

Commit c17c0b2

Browse files
committed
Manual publish
1 parent fbe2168 commit c17c0b2

3 files changed

Lines changed: 17 additions & 27 deletions

File tree

.github/workflows/publish.yml

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,20 @@ jobs:
1919
with:
2020
dotnet-version: 5.0.x
2121

22-
- name: Publish Net50
23-
id: publish_nuget_net50
24-
uses: rohith/publish-nuget@v2
25-
with:
26-
# Filepath of the project to be packaged, relative to root of repository
27-
PROJECT_FILE_PATH: Basic.Reference.Assemblies.Net50/Basic.Reference.Assemblies.Net50.csproj
28-
VERSION_STATIC: ${{ github.event.inputs.version }}
29-
TAG_COMMIT: false
30-
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
22+
- name: Restore dependencies
23+
run: dotnet restore
3124

32-
- name: Publish NetCoreApp31
33-
id: publish_nuget_netcoreapp31
34-
uses: rohith/publish-nuget@v2
35-
with:
36-
# Filepath of the project to be packaged, relative to root of repository
37-
PROJECT_FILE_PATH: Basic.Reference.Assemblies.NetCoreApp31/Basic.Reference.Assemblies.NetCoreApp31.csproj
38-
VERSION_STATIC: ${{ github.event.inputs.version }}
39-
TAG_COMMIT: false
40-
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
25+
- name: Build
26+
run: dotnet build -c Release -p:PackageVersion="${{ github.events.inputs.version }}"
27+
28+
- name: Pack Net50
29+
run: dotnet pack --no-build -C Release Basic.Reference.Assemblies.Net50/Basic.Reference.Assemblies.Net50.csproj .
4130

42-
- name: Publish NetStandard20
43-
id: publish_nuget_netstandard20
44-
uses: rohith/publish-nuget@v2
45-
with:
46-
# Filepath of the project to be packaged, relative to root of repository
47-
PROJECT_FILE_PATH: Basic.Reference.Assemblies.NetStandard20/Basic.Reference.Assemblies.NetStandard20.csproj
48-
VERSION_STATIC: ${{ github.event.inputs.version }}
49-
TAG_COMMIT: false
50-
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
31+
- name: Pack NetCoreApp31
32+
run: dotnet pack --no-build -C Release Basic.Reference.Assemblies.NetCoreApp31/Basic.Reference.Assemblies.NetCoreApp31.csproj .
33+
34+
- name: Pack NetStandard20
35+
run: dotnet pack --no-build -C Release Basic.Reference.Assemblies.NetCoreApp31/Basic.Reference.Assemblies.NetStandard20.csproj .
36+
37+
- name: Publish NuPkg Files
38+
run: dotnet nuget push -k ${{ secrets.NUGET_API_KEY }} --no-symbols Basic.Reference.Assemblies.Net50.nupkg Basic.Reference.Assemblies.NetCoreApp31.nupkg Basic.Reference.Assemblies.NetStandard20.nupkg

Basic.Reference.Assemblies.NetCoreApp31/Basic.Reference.Assemblies.NetCoreApp31.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5+
<IsPackable>true</IsPackable>
56
</PropertyGroup>
67

78
<ItemGroup>

Basic.Reference.Assemblies.NetStandard20/Basic.Reference.Assemblies.NetStandard20.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5+
<IsPackable>true</IsPackable>
56
</PropertyGroup>
67

78
<Import Project="Generated.targets" />

0 commit comments

Comments
 (0)