-
Notifications
You must be signed in to change notification settings - Fork 22
67 lines (58 loc) · 1.73 KB
/
release.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: release
on:
workflow_dispatch:
inputs:
prereleaseSlug:
description: 'Prerelease slug (optional)'
required: false
default: ''
type: choice
options:
- rc
- beta
- ''
jobs:
meta:
uses: ./.github/workflows/part-compute-version.yml
secrets: inherit
with:
prereleaseSlug: ${{ inputs.prereleaseSlug }}
checkTagIsUnique: true
build:
uses: ./.github/workflows/part-build.yml
secrets: inherit
needs: meta
with:
COALESCE_VERSION: ${{ needs.meta.outputs.COALESCE_VERSION }}
publish:
uses: ./.github/workflows/part-publish.yml
needs: [build]
secrets: inherit
create-release:
runs-on: ubuntu-latest
needs: [meta, publish]
steps:
- uses: actions/checkout@v4
- uses: rickstaa/action-create-tag@v1
if: !inputs.prereleaseSlug
with:
tag: ${{ needs.meta.outputs.COALESCE_VERSION }}
build-template:
uses: ./.github/workflows/part-template-build.yml
secrets: inherit
needs: [meta, publish]
with:
# Versioned template build depends upon NPM packages being published,
# and nuget packages existing as local artifacts (since Nuget.org is so slow
# to make new packages available, we consume the local artifacts instead of waiting).
COALESCE_VERSION: ${{ needs.meta.outputs.COALESCE_VERSION }}
publish-template:
runs-on: ubuntu-latest
needs: [build-template]
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: template-packages
- name: dotnet nuget push
run: dotnet nuget push "**/*.nupkg" -s https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}