diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10aed1d..0ef5add 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [ master ] + branches: [ master ] pull_request: branches: [ master ] @@ -23,7 +23,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - fetch-depth: 0 # Full history for better analysis + fetch-depth: 0 - name: Setup .NET uses: actions/setup-dotnet@v4 @@ -49,17 +49,28 @@ jobs: name: Publish to GitHub Packages runs-on: ubuntu-latest needs: test - if: github.event_name == 'push' && github.ref == 'refs/heads/master' + steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup .NET uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.DOTNET_VERSION }} + source-url: https://nuget.pkg.github.com/bpsLogicBuilder/index.json + env: + NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Restore dependencies + run: dotnet restore + + - name: Build project + run: dotnet build --no-restore --configuration Release + - name: Publish to GitHub Packages run: | dotnet pack --configuration Release --no-build -o ./nupkg - dotnet nuget push ./nupkg/*.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} - env: - NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..9d20bd8 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,12 @@ + + + BlaiseD + latest + true + $(NoWarn);1701;1702;1591 + true + true + snupkg + true + + diff --git a/LogicBuilder.ComponentModel.Design.Serialization.slnx b/LogicBuilder.ComponentModel.Design.Serialization.slnx index d724b77..3864e89 100644 --- a/LogicBuilder.ComponentModel.Design.Serialization.slnx +++ b/LogicBuilder.ComponentModel.Design.Serialization.slnx @@ -1,7 +1,7 @@ - + diff --git a/coverlet.runsettings b/coverlet.runsettings deleted file mode 100644 index ab92f23..0000000 --- a/coverlet.runsettings +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - [*]*/SerializationSession - Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute - false - - - - - \ No newline at end of file