From f2e6c5dabf9f43d00d11c197eedec491e946ae34 Mon Sep 17 00:00:00 2001 From: Sampo Silvennoinen Date: Sun, 24 Apr 2022 11:22:51 +0300 Subject: [PATCH 1/2] CI/CD: Add publish workflow --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..bbb5a10 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: Release package to NuGet + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-dotnet@v2 + 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/OldNorwegianDictionary.csproj/bin/Release/*.nupkg \ No newline at end of file From c3055355d852abfb81d9ef1554a6c31d0a08a2e5 Mon Sep 17 00:00:00 2001 From: Sampo Silvennoinen Date: Sun, 24 Apr 2022 11:28:17 +0300 Subject: [PATCH 2/2] PackageVersion: 0.9.0 --- src/OldNorwegianDictionary.csproj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OldNorwegianDictionary.csproj b/src/OldNorwegianDictionary.csproj index 9efa351..f988125 100644 --- a/src/OldNorwegianDictionary.csproj +++ b/src/OldNorwegianDictionary.csproj @@ -5,10 +5,11 @@ enable enable stscoundrel / Sampo Silvennoinen + 0.9.0 - +