-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 818 Bytes
/
CI.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
name: Treasure.Analyzers-CI
on:
push:
branches:
- main
paths-ignore:
- '.config/**'
- '.github/dependabot.yml'
- '.vscode/**'
- 'docs/**'
- 'README.md'
jobs:
build_ci:
name: Build Treasure.Analyzers
if: "!contains(github.event.head_commit.message, 'ci skip')"
uses: ./.github/workflows/workflow_build.yml
secrets: inherit
with:
# don't check format on CI builds due to common breaking changes in the .NET SDK
checkFormat: false
release_ci:
name: Release Treasure.Analyzers to NuGet.org
needs: build_ci
if: ${{ contains(github.event.head_commit.message, 'do release') }}
uses: ./.github/workflows/workflow_release.yml
secrets: inherit
with:
package-version: ${{ needs.build_ci.outputs.package_version }}