-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.58 KB
/
publish-package-pipeline.yml
File metadata and controls
53 lines (46 loc) · 1.58 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: pipeline ci/cd - publish comanda packages
on:
push:
branches:
- master
paths:
- 'Artifacts/Comanda.Internal.Contracts/**'
- 'Artifacts/Comanda.Internal.AspNet/**'
jobs:
changes:
runs-on: ubuntu-latest
outputs:
comanda_internal_contracts: ${{ steps.filter.outputs.comanda_internal_contracts }}
comanda_internal_aspnet: ${{ steps.filter.outputs.comanda_internal_aspnet }}
steps:
- name: checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: detect changed paths
id: filter
uses: dorny/paths-filter@v4
with:
filters: |
comanda_internal_contracts:
- 'Artifacts/Comanda.Internal.Contracts/**'
comanda_internal_aspnet:
- 'Artifacts/Comanda.Internal.AspNet/**'
# publish this package if there are changes in the corresponding path
publish-comanda-internal-contracts:
needs: changes
if: needs.changes.outputs.comanda_internal_contracts == 'true'
uses: ./.github/workflows/template-publish-package.yml
with:
working_directory: Artifacts/Comanda.Internal.Contracts/Source
dotnet_version: 9.0.x
secrets: inherit
# publish this package if there are changes in the corresponding path
publish-comanda-internal-aspnet:
needs: changes
if: needs.changes.outputs.comanda_internal_aspnet == 'true'
uses: ./.github/workflows/template-publish-package.yml
with:
working_directory: Artifacts/Comanda.Internal.AspNet/Source
dotnet_version: 9.0.x
secrets: inherit