-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.44 KB
/
Copy pathdeploy.yml
File metadata and controls
53 lines (47 loc) · 1.44 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: Deploy
on:
workflow_dispatch:
push:
branches:
- main
permissions: {}
jobs:
check:
name: Check
uses: finphie/Actions/.github/workflows/get-version.yml@main
release:
name: Release
needs: [check, dotnet]
if: |
always() &&
!cancelled() &&
(needs.dotnet.result == 'success' || needs.dotnet.result == 'skipped') &&
needs.check.outputs.release == 'true'
uses: finphie/Actions/.github/workflows/release.yml@main
permissions:
contents: write
with:
version: ${{ needs.check.outputs.version }}
tag: ${{ needs.check.outputs.tag }}
dotnet:
name: Deploy(.NET)
needs: check
if: needs.check.outputs.dotnet == 'true' && needs.check.outputs.version != ''
uses: finphie/Actions/.github/workflows/deploy-dotnet.yml@main
with:
version: ${{ needs.check.outputs.version }}
release: ${{ needs.check.outputs.release == 'true' }}
suffix: ${{ needs.check.outputs.tag }}
secrets:
AZURE_ARTIFACT_PAT: ${{ secrets.AZURE_ARTIFACT_PAT }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
docker:
name: Deploy(Docker)
needs: check
if: needs.check.outputs.docker == 'true' && needs.check.outputs.release == 'true'
uses: finphie/Actions/.github/workflows/deploy-docker.yml@main
permissions:
packages: write
with:
version: ${{ needs.check.outputs.version }}
version-major: ${{ needs.check.outputs.version-major }}