Skip to content

Publish .NET 8.0 and 10.0 Artifacts #4

Publish .NET 8.0 and 10.0 Artifacts

Publish .NET 8.0 and 10.0 Artifacts #4

name: Publish .NET 8.0 and 10.0 Artifacts
on:
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [8.0, 10.0]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish ACMEServer.ADCS
run: |
dotnet publish src/ACMEServer.ADCS/ACMEServer.ADCS.csproj --configuration Release --framework net${{ matrix.dotnet-version }} --output "artifacts/${{ matrix.dotnet-version }}/ACMEServer.ADCS"
- name: Upload published artifacts
uses: actions/upload-artifact@v4
with:
name: published-net${{ matrix.dotnet-version }}
path: artifacts/${{ matrix.dotnet-version }}/