-
-
Notifications
You must be signed in to change notification settings - Fork 8
76 lines (69 loc) · 2.01 KB
/
Copy pathrelease.yml
File metadata and controls
76 lines (69 loc) · 2.01 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
67
68
69
70
71
72
73
74
75
76
name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
version:
description: "Version number (e.g., 1.0.0)"
required: false
type: string
notes:
description: "Version notes"
required: false
type: string
permissions:
contents: write
jobs:
version:
name: Get Version
uses: ./.github/workflows/_get-version.yml
with:
version: ${{ inputs.version }}
notes: ${{ inputs.notes }}
secrets: inherit
build:
name: Build
needs: version
if: needs.version.outputs.kill-pipeline != 'true'
uses: ./.github/workflows/_build-release.yml
with:
version: ${{ needs.version.outputs.version }}
commit-sha: ${{ needs.version.outputs.new-sha }}
secrets: inherit
package-and-certify:
name: Package and Certify
needs: [build, version]
if: needs.version.outputs.kill-pipeline != 'true'
uses: ./.github/workflows/_package-and-certify.yml
permissions:
contents: write
id-token: write
attestations: write
artifact-metadata: write
with:
version: ${{ needs.version.outputs.version }}
secrets: inherit
sentry:
name: Sentry
needs: [version, package-and-certify, build]
if: needs.version.outputs.kill-pipeline != 'true'
uses: ./.github/workflows/_sentry-upload.yml
with:
version: ${{ needs.version.outputs.version }}
artifact-name: ${{ needs.build.outputs.artifact-name }}
secrets:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
publish:
name: Publish
needs: [version, package-and-certify, sentry]
if: needs.version.outputs.kill-pipeline != 'true'
uses: ./.github/workflows/_publish-release.yml
with:
version: ${{ needs.version.outputs.version }}
artifact-name: ${{ needs.package-and-certify.outputs.package-name }}
commit-sha: ${{ needs.version.outputs.new-sha }}
secrets: inherit