-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.43 KB
/
cd.yml
File metadata and controls
53 lines (49 loc) · 1.43 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
44
45
46
47
48
49
50
51
52
53
name: Continuous Delivery
on:
push:
branches:
- "**"
tags-ignore:
- '**'
env:
repository: Fresa/OpenAPI.WebApiGenerator
project_path: src/OpenAPI.WebApiGenerator
project_name: OpenAPI.WebApiGenerator
dotnet_version: 9.0.x
jobs:
test:
name: Build & Test
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v5
- name: Setup .NET
id: dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.dotnet_version }}
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test -c Release --no-build --verbosity normal
outputs:
dotnet_version: ${{ steps.dotnet.outputs.dotnet-version }}
repository: ${{ env.repository }}
project_path: ${{ env.project_path }}
project_name: ${{ env.project_name }}
release:
name: Create Release
uses: Fresa/Library.Net.ContinuousDelivery/.github/workflows/release.yml@v0
needs: test
if: github.repository == needs.test.outputs.repository && github.actor != 'dependabot[bot]'
permissions:
contents: write
with:
project_path: ${{ needs.test.outputs.project_path }}
project_name: ${{ needs.test.outputs.project_name }}
dotnet_version: ${{ needs.test.outputs.dotnet_version }}
secrets:
nuget_api_key: ${{ secrets.NUGET_API_KEY }}