From eb941b6cd31d1877b3792fc12a7aedd29fa5c84a Mon Sep 17 00:00:00 2001 From: Jonghyo Lee Date: Tue, 14 May 2024 23:45:46 +0900 Subject: [PATCH] Actions Test 0 --- .github/workflows/dotnet.yml | 22 ++++++++++++++++++- .../packages.lock.json | 2 +- Bluehill.Hangul/Bluehill.Hangul.csproj | 2 +- Directory.Build.props | 4 ++++ Directory.Build.targets | 2 ++ 5 files changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index bb60770..07d6aa1 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -8,6 +8,8 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + release: + types: [ "published" ] jobs: build: @@ -42,4 +44,22 @@ jobs: uses: actions/upload-artifact@v4 with: name: ${{ github.event.repository.name }}.nupkg - path: ${{ env.OUTPUT_PATH }}/*.nupkg + path: ${{ env.OUTPUT_PATH }}/*.*nupkg + + publish: + name: Publish to NuGet + if: ${{ github.event_name == 'release' }} + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Download Package artifact + uses: actions/download-artifact@v4 + with: + name: ${{ github.event.repository.name }}.nupkg + - name: Publish to Nuget + run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_KEY }} --skip-duplicate diff --git a/Bluehill.Hangul.Pages.Tests/packages.lock.json b/Bluehill.Hangul.Pages.Tests/packages.lock.json index 035b350..c7b7926 100644 --- a/Bluehill.Hangul.Pages.Tests/packages.lock.json +++ b/Bluehill.Hangul.Pages.Tests/packages.lock.json @@ -415,7 +415,7 @@ "bluehill.hangul.pages": { "type": "Project", "dependencies": { - "Bluehill.Hangul": "[2.0.3, )", + "Bluehill.Hangul": "[2.1.0-gh-actions-test.0, )", "HighlightBlazor": "[0.1.10, )", "Microsoft.AspNetCore.Components.WebAssembly": "[8.0.4, )", "Microsoft.AspNetCore.Components.WebAssembly.DevServer": "[8.0.4, )", diff --git a/Bluehill.Hangul/Bluehill.Hangul.csproj b/Bluehill.Hangul/Bluehill.Hangul.csproj index ab015c7..107dc41 100644 --- a/Bluehill.Hangul/Bluehill.Hangul.csproj +++ b/Bluehill.Hangul/Bluehill.Hangul.csproj @@ -6,7 +6,7 @@ 한글 관련 라이브러리 2 2.1.0 - 2.1-alpha + 2.1-gh-actions-test.0 True ..\bluehill.snk $(NoWarn);0436;CA1510;IDE0056 diff --git a/Directory.Build.props b/Directory.Build.props index bf07d6f..c95548c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -9,6 +9,7 @@ Bluehill Bluehill.Hangul Copyright © Bluehill 2024 + false https://na1307.github.io/Bluehill.Hangul hangul;josa;한글;조사;na1307;bluehill MIT @@ -19,4 +20,7 @@ True latest + + true + \ No newline at end of file diff --git a/Directory.Build.targets b/Directory.Build.targets index 50b1ba7..ed0bb3e 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -2,5 +2,7 @@ true snupkg + true + true \ No newline at end of file