Skip to content

chore(deps): update dependency dotnet-sdk to v8.0.300 #544

chore(deps): update dependency dotnet-sdk to v8.0.300

chore(deps): update dependency dotnet-sdk to v8.0.300 #544

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- 'master'
- 'alpha'
- 'beta'
- 'dev'
pull_request:
types: [opened, reopened, synchronize]
name: Create Release
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
path: [samples/BlazorApplicationInsights.Sample.Wasm, samples/BlazorApplicationInsights.Sample.Wasm6]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Dotnet Build
run: dotnet build -c Release
- name: Run App
working-directory: ${{ matrix.path }}
run: Start-Process dotnet 'run','-c','Release','--launch-profile','https' -PassThru
shell: pwsh
- name: Install Playwright
working-directory: tests/BlazorApplicationInsights.Tests/bin/Release/net8.0
run: ./playwright.ps1 install --with-deps
shell: pwsh
- name: Run Tests
working-directory: tests/BlazorApplicationInsights.Tests
run: dotnet test -c Release
build:
name: Create Release
needs: [test]
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Dotnet Build
run: dotnet build -c Release
- name: Dotnet Publish
working-directory: samples/BlazorApplicationInsights.Sample.Wasm
run: dotnet publish -c Release
- name: Deploy
run: npx netlify deploy ${{ (github.ref == 'refs/heads/master' && '--prod') || '' }} --json -d samples/BlazorApplicationInsights.Sample.Wasm/bin/Release/net8.0/publish/wwwroot
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Dotnet Pack
working-directory: src/BlazorApplicationInsights
run: dotnet pack -c Release -p:Version=${{ (steps.semantic.outputs.new_release_published && steps.semantic.outputs.new_release_version) || '0.0.1' }}
- uses: actions/upload-artifact@v4
with:
name: NuGet
path: src/BlazorApplicationInsights/bin/Release/BlazorApplicationInsights.${{ (steps.semantic.outputs.new_release_published && steps.semantic.outputs.new_release_version) || '0.0.1' }}.nupkg
- name: Dotnet Nuget Push
if: steps.semantic.outputs.new_release_published == 'true'
working-directory: src/BlazorApplicationInsights/bin/Release
run: dotnet nuget push BlazorApplicationInsights.*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}