name: CI # Everyday checks. Runs on the working branch and on pull requests into it. # Releasing is a separate workflow driven by the production branch. on: push: branches: [dev] pull_request: branches: [dev, production] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 with: dotnet-version: "10.0.x" - name: Restore run: dotnet restore # Directory.Build.props turns warnings into errors, so this gates style too. - name: Build run: dotnet build --configuration Release --no-restore - name: Pack run: dotnet pack src/CertifiEd.Client/CertifiEd.Client.csproj --configuration Release --no-build --output artifacts - name: Upload package artifacts uses: actions/upload-artifact@v3 with: name: nupkg path: artifacts/*