-
Notifications
You must be signed in to change notification settings - Fork 127
36 lines (31 loc) · 912 Bytes
/
build.yml
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
name: build
on:
workflow_call:
inputs:
pack:
default: false
required: true
type: boolean
jobs:
build-and-sign:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Semantic version
uses: './.github/actions/dotnet/version'
id: version
- name: Restore and build
uses: './.github/actions/dotnet/build'
- name: Execute unit test and publish reports
uses: './.github/actions/dotnet/test'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Pack and sign NuGet packages
uses: './.github/actions/dotnet/pack'
if: ${{ inputs.pack }}
with:
pre-release-version: ${{steps.version.outputs.pre-release-version}}
release-version: ${{steps.version.outputs.release-version}}