-
-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (39 loc) · 1.37 KB
/
Copy pathdotnet.yml
File metadata and controls
43 lines (39 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
inputs:
publish-packages:
description: Publish packages?
type: boolean
required: true
jobs:
modularpipeline:
environment: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Pull Requests' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
# 10.0.x runs the pipeline; 8.0.x and 9.0.x provide runtimes for the multi-targeted test project
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Run Pipeline
run: dotnet run -c Release
working-directory: "EnumerableAsyncProcessor.Pipeline"
env:
DOTNET_ENVIRONMENT: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Development' }}
NuGet__ApiKey: ${{ github.ref == 'refs/heads/main' && secrets.NuGet__ApiKey || null }}
PULL_REQUEST_BRANCH: ${{ github.event.pull_request.head.ref }}
PUBLISH_PACKAGES: ${{ github.event.inputs.publish-packages }}