Skip to content

Restore css resource for Demo Site #4

Restore css resource for Demo Site

Restore css resource for Demo Site #4

name: Build and deploy DemoSpinnerTailwind
on:
push:
branches: [main]
paths: [ 'src/DemoTailwind/**' ]
workflow_dispatch:
env:
CONFIGURATION: Release
DOTNET_CORE_VERSION: 8.0.x
WORKING_DIRECTORY: src/DemoTailwind
AZURE_WEBAPP_PACKAGE_PATH: src/DemoTailwind/published
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x
9.x
- name: Build with dotnet
run: dotnet build --configuration Release
- name: dotnet publish
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}"
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: .net-app
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: .net-app
- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_B84E79DF9BBF4CD1929B1B3C4AD44080 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_5AAF9F6116C246149AA0AB7EEF48644D }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_9181C40E2F6940B9A6991484BD5CDE5A }}
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: 'DemoBlazorSpinnerTailwind'
slot-name: 'Production'
package: .