1
+ name : continuous-delivery
2
+ run-name : Publish pipeline after ${{github.event_name}} by @${{ github.actor }}
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - release/**
8
+
9
+ jobs :
10
+ continuous-integration :
11
+ uses : ./.github/workflows/build.yml
12
+ with :
13
+ pack : true
14
+ secrets : inherit
15
+
16
+ publish-preview-packages :
17
+ uses : ./.github/workflows/publish.yml
18
+ needs : [ continuous-integration ]
19
+ with :
20
+ environment : preview
21
+ secrets : inherit
22
+
23
+ publish-release-packages :
24
+ uses : ./.github/workflows/publish.yml
25
+ needs : [ publish-preview-packages ]
26
+ with :
27
+ environment : release
28
+ secrets : inherit
29
+
30
+ tag-and-release :
31
+ runs-on : ubuntu-latest
32
+ needs : [ publish-release-packages ]
33
+ steps :
34
+ - name : Checkout
35
+ uses : actions/checkout@v3
36
+ with :
37
+ fetch-depth : 0
38
+
39
+ - name : Semantic version
40
+ uses : ' ./.github/actions/dotnet/version'
41
+ id : version
42
+
43
+ - name : Create tag
44
+ uses : rickstaa/action-create-tag@v1
45
+ id : tag
46
+ with :
47
+ tag : ' v${{steps.version.outputs.release-version}}'
48
+ tag_exists_error : true
49
+ github_token : ${{ secrets.GITHUB_TOKEN }}
50
+
51
+ - name : Create pull request
52
+ uses :
devops-infra/[email protected]
53
+ with :
54
+ github_token : ${{ secrets.GITHUB_TOKEN }}
55
+ target_branch : master
56
+ title : Release v${{steps.version.outputs.release-version}}
57
+ draft : false
58
+ get_diff : true
59
+ ignore_users : " dependabot"
60
+ allow_no_diff : true
61
+
62
+ - name : Create the release
63
+ uses : ncipollo/release-action@v1
64
+ with :
65
+ allowUpdates : true
66
+ generateReleaseNotes : true
67
+ name : ' v${{steps.version.outputs.release-version}}'
68
+ tag : ' v${{steps.version.outputs.release-version}}'
0 commit comments