Skip to content

Commit

Permalink
Actions Test 0
Browse files Browse the repository at this point in the history
  • Loading branch information
na1307 committed May 14, 2024
1 parent 7a486bc commit eb941b6
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [ "published" ]

jobs:
build:
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion Bluehill.Hangul.Pages.Tests/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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, )",
Expand Down
2 changes: 1 addition & 1 deletion Bluehill.Hangul/Bluehill.Hangul.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Description>한글 관련 라이브러리</Description>
<AssemblyVersion>2</AssemblyVersion>
<FileVersion>2.1.0</FileVersion>
<Version>2.1-alpha</Version>
<Version>2.1-gh-actions-test.0</Version>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\bluehill.snk</AssemblyOriginatorKeyFile>
<NoWarn>$(NoWarn);0436;CA1510;IDE0056</NoWarn>
Expand Down
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<Company>Bluehill</Company>
<Product>Bluehill.Hangul</Product>
<Copyright>Copyright © Bluehill 2024</Copyright>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<PackageProjectUrl>https://na1307.github.io/Bluehill.Hangul</PackageProjectUrl>
<PackageTags>hangul;josa;한글;조사;na1307;bluehill</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand All @@ -19,4 +20,7 @@
<EnableNETAnalyzers>True</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
</Project>
2 changes: 2 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
<PropertyGroup Condition="'$(GeneratePackageOnBuild)' == 'true'">
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<EnablePackageValidation>true</EnablePackageValidation>
</PropertyGroup>
</Project>

0 comments on commit eb941b6

Please sign in to comment.