Skip to content

Commit

Permalink
CI/CD: api key based publish flow
Browse files Browse the repository at this point in the history
  • Loading branch information
stscoundrel committed Apr 24, 2022
1 parent 491914f commit 21edbdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ jobs:
with:
dotnet-version: '6.0.x'
source-url: https://nuget.pkg.github.com/stscoundrel/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_TOKEN}}
- run: dotnet build --configuration Release src/OldNorwegianDictionary.csproj
- name: Create the package
run: dotnet pack --configuration Release src/OldNorwegianDictionary.csproj
- name: Publish the package to NuGet
run: dotnet nuget push src/bin/Release/*.nupkg
run: dotnet nuget push src/bin/Release/*.nupkg --api-key ${{secrets.NUGET_TOKEN}} --skip-duplicate
2 changes: 1 addition & 1 deletion src/OldNorwegianDictionary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Authors>stscoundrel / Sampo Silvennoinen</Authors>
<PackageVersion>0.9.0</PackageVersion>
<PackageVersion>0.9.3</PackageVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 21edbdc

Please sign in to comment.