diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 06163f9b..804d9087 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -27,11 +27,11 @@ jobs: run: ./dotnet-sonarscanner begin /o:ivanjosipovic /k:IvanJosipovic_BlazorTable /d:sonar.host.url=https://sonarcloud.io /d:sonar.login=${{ secrets.SONARQUBE_TOKEN }} - name: Dotnet Build - run: dotnet build --configuration Release + run: dotnet build -c Release - name: Dotnet Publish working-directory: src/BlazorTable.Sample.Wasm - run: dotnet publish --configuration Release + run: dotnet publish -c Release - name: SonarQube End run: ./dotnet-sonarscanner end /d:sonar.login=${{ secrets.SONARQUBE_TOKEN }} @@ -42,7 +42,7 @@ jobs: id: netlify uses: ivanjosipovic/actions/cli@master with: - args: deploy --json -d src/BlazorTable.Sample.Wasm/bin/Release/netstandard2.1/publish/BlazorTable.Sample.Wasm/dist/ + args: deploy --json -d src/BlazorTable.Sample.Wasm/bin/Release/netstandard2.1/publish/wwwroot env: NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a753a3ad..ecee3129 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,24 +29,26 @@ jobs: working-directory: src/BlazorTable run: dotnet pack -c Release -p:Version=${{ steps.version.outputs.new_tag }} - - name: Dotnet Nuget Push + - name: Dotnet Nuget Push + if: "!contains(github.event.head_commit.message, '#skip')" working-directory: src/BlazorTable/bin/Release run: dotnet nuget push BlazorTable.*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} continue-on-error: true - name: Dotnet Publish working-directory: src/BlazorTable.Sample.Wasm - run: dotnet publish --configuration Release + run: dotnet publish -c Release - name: Deploy to Production uses: netlify/actions/cli@master with: - args: deploy --prod --json -d src/BlazorTable.Sample.Wasm/bin/Release/netstandard2.1/publish/BlazorTable.Sample.Wasm/dist/ + args: deploy --prod --json -d src/BlazorTable.Sample.Wasm/bin/Release/netstandard2.1/publish/wwwroot env: NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - name: Create Release + if: "!contains(github.event.head_commit.message, '#skip')" uses: actions/create-release@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/BlazorTable.Sample.Server/BlazorTable.Sample.Server.csproj b/src/BlazorTable.Sample.Server/BlazorTable.Sample.Server.csproj index 25afae5e..340e9dbd 100644 --- a/src/BlazorTable.Sample.Server/BlazorTable.Sample.Server.csproj +++ b/src/BlazorTable.Sample.Server/BlazorTable.Sample.Server.csproj @@ -4,10 +4,6 @@ netcoreapp3.1 - - - - diff --git a/src/BlazorTable.Sample.Server/Properties/launchSettings.json b/src/BlazorTable.Sample.Server/Properties/launchSettings.json index 44b37566..046786b2 100644 --- a/src/BlazorTable.Sample.Server/Properties/launchSettings.json +++ b/src/BlazorTable.Sample.Server/Properties/launchSettings.json @@ -18,7 +18,6 @@ "BlazorTable.Sample.Server": { "commandName": "Project", "launchBrowser": true, - "launchUrl": "/CustomSelect", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, diff --git a/src/BlazorTable.Sample.Shared/BlazorTable.Sample.Shared.csproj b/src/BlazorTable.Sample.Shared/BlazorTable.Sample.Shared.csproj index d8459039..a45fa5e6 100644 --- a/src/BlazorTable.Sample.Shared/BlazorTable.Sample.Shared.csproj +++ b/src/BlazorTable.Sample.Shared/BlazorTable.Sample.Shared.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/BlazorTable.Sample.Shared/NavMenu.razor b/src/BlazorTable.Sample.Shared/NavMenu.razor index 303e9176..337f636f 100644 --- a/src/BlazorTable.Sample.Shared/NavMenu.razor +++ b/src/BlazorTable.Sample.Shared/NavMenu.razor @@ -12,6 +12,11 @@ Home +