Upgraded nuget packages to align with .NET 8 & re;oving dependency on… #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET Core | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 7.0.x | |
# Runs a single command using the runners shell | |
- name: Restore Packages | |
run: | | |
cd src/SampleProject/Client | |
dotnet restore | |
dotnet build blazorwasm.Client.csproj -o ../../../dist | |
- name: Build with dotnet | |
run: | | |
cd src/SampleProject/Client | |
dotnet publish blazorwasm.Client.csproj -o ../../../dist | |
- name: Azure Login | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Azure CLI script | |
uses: azure/CLI@v1 | |
with: | |
azcliversion: 2.2.0 | |
inlineScript: | | |
az storage blob upload-batch --account-name bxblazor --destination '$web' --source 'dist' --account-key ${{ secrets.STORAGE_ACCOUNT_KEY }} |