diff --git a/.github/workflows/dotnet-package.yml b/.github/workflows/dotnet-package.yml index 16dfe8c..4d7fd6e 100644 --- a/.github/workflows/dotnet-package.yml +++ b/.github/workflows/dotnet-package.yml @@ -2,31 +2,35 @@ name: Dotnet Package on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: build: - - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: matrix: - os: [macos-latest, ubuntu-latest, windows-latest] + dotnet: [6, 7, 8] steps: - - uses: actions/checkout@v4 - - name: Setup .NET 6.0 - uses: actions/setup-dotnet@v3 - with: - dotnet-version: '6.0.x' - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: '16' - - name: Install dependencies - run: dotnet restore XtermBlazor - - name: Build - run: dotnet build XtermBlazor --no-restore - #- name: Test - # run: dotnet test XtermBlazor --no-build --verbosity normal + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ matrix.dotnet }} + + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install dependencies + run: dotnet restore XtermBlazor + + - name: Build + run: dotnet build XtermBlazor --no-restore + + # - name: Test + # run: dotnet test XtermBlazor --no-build --verbosity normal diff --git a/.github/workflows/dotnet-publish-gpr.yml b/.github/workflows/dotnet-publish-gpr.yml index defea73..985bc01 100644 --- a/.github/workflows/dotnet-publish-gpr.yml +++ b/.github/workflows/dotnet-publish-gpr.yml @@ -6,25 +6,29 @@ on: jobs: deploy: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Setup .NET 6.0 - uses: actions/setup-dotnet@v3 - with: - dotnet-version: '6.0.x' - source-url: https://nuget.pkg.github.com/BattlefieldDuck/index.json - env: - NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: '16' - - name: Build - run: dotnet build XtermBlazor -c Release - - name: Create the package - run: dotnet pack XtermBlazor -c Release - - name: Publish the package to GPR - run: dotnet nuget push XtermBlazor/bin/Release/*.nupkg + - uses: actions/checkout@v4 + + - name: Setup .NET 8 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8 + source-url: https://nuget.pkg.github.com/BattlefieldDuck/index.json + env: + NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Build + run: dotnet build XtermBlazor -c Release + + - name: Create the package + run: dotnet pack XtermBlazor -c Release + + - name: Publish the package to GPR + run: dotnet nuget push XtermBlazor/bin/Release/*.nupkg diff --git a/.github/workflows/dotnet-publish-nuget.yml b/.github/workflows/dotnet-publish-nuget.yml index 7d0ef49..45c23d2 100644 --- a/.github/workflows/dotnet-publish-nuget.yml +++ b/.github/workflows/dotnet-publish-nuget.yml @@ -6,24 +6,28 @@ on: jobs: deploy: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Setup .NET 6.0 - uses: actions/setup-dotnet@v3 - with: - dotnet-version: '6.0.x' - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: '16' - - name: Build - run: dotnet build XtermBlazor -c Release - - name: Create the package - run: dotnet pack XtermBlazor -c Release - - name: Publish the package to nuget.org - run: dotnet nuget push XtermBlazor/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json - env: - NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} + - uses: actions/checkout@v4 + + - name: Setup .NET 8 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8 + + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Build + run: dotnet build XtermBlazor -c Release + + - name: Create the package + run: dotnet pack XtermBlazor -c Release + + - name: Publish the package to nuget.org + run: dotnet nuget push XtermBlazor/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json + env: + NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} diff --git a/XtermBlazor/XtermBlazor.csproj b/XtermBlazor/XtermBlazor.csproj index ea84f2b..a51f3a7 100644 --- a/XtermBlazor/XtermBlazor.csproj +++ b/XtermBlazor/XtermBlazor.csproj @@ -1,9 +1,9 @@  - net6.0 + net8.0;net7.0;net6.0 - + @@ -32,11 +32,11 @@ - + - + True @@ -51,12 +51,22 @@ - - + + - + - + + + + + + + + + + + False @@ -80,5 +90,5 @@ - +