Skip to content

Commit 860b6ca

Browse files
committed
i
1 parent ca041a6 commit 860b6ca

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/nuget-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
for proj in src/**/*.csproj; do
2323
dotnet restore "$proj"
2424
done
25+
- name: Set VERSION from git tag
26+
run: |
27+
echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
2528
2629
- name: Build
2730
run: |
@@ -32,7 +35,7 @@ jobs:
3235
- name: Pack all projects in src
3336
run: |
3437
for proj in src/**/*.csproj; do
35-
dotnet pack "$proj" --configuration Release --no-build --output ./nupkgs
38+
dotnet pack "$proj" --configuration Release --no-build --output ./nupkgs /p:Version=${VERSION}
3639
done
3740
3841
- name: Push all packages to NuGet

CommonCrawl.Net.slnx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Solution>
22
<Folder Name="/actions/">
33
<File Path=".github/workflows/nuget-publish.yml" />
4-
<File Path=".github/workflows/publish.yml" />
54
</Folder>
65
<Folder Name="/examples/">
76
<Project Path="CommonCraw.ConsoleApp/CommonCraw.ConsoleApp.csproj" Id="31ff5ad8-4851-4803-b5b9-46c689fd9b2a" />

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Authors>sunny</Authors>
88
<RootNamespace>CommonCrawl</RootNamespace>
9+
<PackageReadmeFile>README.md</PackageReadmeFile>
910
<RepositoryUrl>https://github.com/m67186636/CommonCrawl.Net</RepositoryUrl>
1011
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
1112
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>

0 commit comments

Comments
 (0)