-
-
Notifications
You must be signed in to change notification settings - Fork 34
40 lines (35 loc) · 1.19 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
name: Stable release 🕊️📦✅
on:
release:
types:
- released # Trigger on stable releases
- prereleased # Trigger on pre-releases (optional)
workflow_dispatch: # Allow manual triggering
jobs:
test:
uses: gibahjoe/openapi-generator-dart/.github/workflows/code_quality.yml@master
secrets: inherit # Reuse repository secrets
publish_annotations:
name: Publish Annotations Package
needs: [test]
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: openapi-generator-annotations
publish_cli:
name: Publish CLI Package
needs: [test]
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: openapi-generator-cli
publish_generator:
name: Publish Generator Package
needs: [publish_cli, publish_annotations]
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: openapi-generator