-
-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (51 loc) · 1.31 KB
/
Copy pathrelease.yml
File metadata and controls
66 lines (51 loc) · 1.31 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
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Release
on:
workflow_dispatch:
inputs:
tag:
description: Release tag, for example v0.1.0 or v0.1.0-rc.1
required: true
type: string
push:
tags: ["v*"]
jobs:
prepare:
name: Prepare
uses: ./.github/workflows/prepare.yml
with:
tag: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
verify:
name: Verify
needs: prepare
uses: ./.github/workflows/verify.yml
with:
ref: ${{ needs.prepare.outputs.tag }}
test:
name: Test
needs: verify
uses: ./.github/workflows/test.yml
with:
ref: ${{ needs.prepare.outputs.tag }}
package:
name: Package
needs: [prepare, test]
uses: ./.github/workflows/package.yml
with:
ref: ${{ needs.prepare.outputs.tag }}
version: ${{ needs.prepare.outputs.version }}
checksum:
name: Checksum
needs: [prepare, package]
uses: ./.github/workflows/checksum.yml
with:
version: ${{ needs.prepare.outputs.version }}
publish:
name: Publish
needs: [prepare, checksum]
uses: ./.github/workflows/publish.yml
permissions:
contents: write
with:
tag: ${{ needs.prepare.outputs.tag }}
version: ${{ needs.prepare.outputs.version }}
prerelease: ${{ needs.prepare.outputs.prerelease }}