V0.13 - Updated to .NET 10 and Copilot Introduction (#292) #1
This file contains hidden or 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: Deploy Server-Side Demo to Azure | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| paths: | |
| - 'src/BlazorWebFormsComponents/**' | |
| - 'samples/AfterBlazorServerSide/**' | |
| - 'samples/SharedSampleObjects/**' | |
| - '.github/workflows/deploy-server-side.yml' | |
| workflow_dispatch: | |
| permissions: | |
| packages: write | |
| contents: read | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: fritzandfriends/blazorwebformscomponents/serversidesamples | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: samples/AfterBlazorServerSide/Dockerfile | |
| push: true | |
| tags: | | |
| ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest | |
| ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} |