-
-
Notifications
You must be signed in to change notification settings - Fork 8
33 lines (30 loc) · 896 Bytes
/
_pipeline.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
name: Pipeline Template
on:
workflow_call:
inputs:
environment:
description: 'GitHub environment'
default: development
type: string
project-name:
description: 'Name of the project'
required: true
type: string
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
jobs:
build:
uses: ./.github/workflows/_build-test.yml
with:
environment: ${{ inputs.environment }}
project-name: ${{ inputs.project-name }}
configuration: Release
secrets: inherit
deploy:
if: ${{ inputs.environment == 'release' && github.event_name != 'pull_request' }}
needs: build
uses: ./.github/workflows/_deploy-nuget.yml
with:
environment: ${{ inputs.environment }}
project-name: ${{ inputs.project-name }}
version: ${{ needs.build.outputs.version }}
secrets: inherit