Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
timheuer committed May 2, 2024
2 parents 60d00f4 + 899e7c9 commit 56cb988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ jobs:
working-directory: src
run: dotnet pack -o ${{ env.PACKAGE_PATH }}

- name: Setup NuGet
uses: NuGet/[email protected]
with:
nuget-api-key: ${{ secrets.NUGET_KEY }}
nuget-version: latest

- name: Get certificate
id: cert_file
uses: timheuer/base64-to-file@v1
Expand All @@ -60,7 +54,7 @@ jobs:

# Sign the package
- name: Sign NuGet Package
run: nuget sign "**/*.nupkg" -CertificatePath ${{ steps.cert_file.outputs.filePath }} -CertificatePassword "${{ secrets.CERT_PWD }}" -Timestamper http://timestamp.digicert.com -NonInteractive
run: dotnet nuget sign "**/*.nupkg" --certificate-path ${{ steps.cert_file.outputs.filePath }} --certificate-password "${{ secrets.CERT_PWD }}" --timestamper http://timestamp.digicert.com

- name: Publish NuGet package
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
Expand Down
2 changes: 2 additions & 0 deletions src/templatepack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>content</ContentTargetFolders>
<Version>1.2.0</Version>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<Content Include="templates\**\*" Exclude="templates\**\bin\**;templates\**\obj\**" />
<Compile Remove="**\*" />
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 56cb988

Please sign in to comment.