-
Notifications
You must be signed in to change notification settings - Fork 343
80 lines (69 loc) · 2.91 KB
/
release-on-milestone-closed.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
68
69
70
71
72
73
74
75
76
77
78
79
80
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
# https://docs.github.com/en/actions/reference/environment-variables
# https://github.com/laminas/automatic-releases
# https://github.com/perftools/xhgui/settings/secrets/actions
name: "Automatic Releases"
on:
milestone:
types:
- "closed"
env:
GIT_AUTHOR_NAME: "XHGui Release Bot"
# NOTE: The e-mail does not exist
GIT_AUTHOR_EMAIL: "[email protected]"
jobs:
release:
name: "GIT tag, release & create merge-up PR"
runs-on: ubuntu-latest
env:
# https://symfony.com/doc/5.2/console/verbosity.html#verbosity-levels
SHELL_VERBOSITY: 3
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Release"
uses: "laminas/automatic-releases@v1"
with:
command-name: "laminas:automatic-releases:release"
env:
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ env.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ env.GIT_AUTHOR_EMAIL }}
- name: "Create Merge-Up Pull Request"
uses: "laminas/automatic-releases@v1"
with:
command-name: "laminas:automatic-releases:create-merge-up-pull-request"
env:
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ env.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ env.GIT_AUTHOR_EMAIL }}
- name: "Create and/or Switch to new Release Branch"
uses: "laminas/automatic-releases@v1"
with:
command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor"
env:
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ env.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ env.GIT_AUTHOR_EMAIL }}
- name: "Bump Changelog Version On Originating Release Branch"
uses: "laminas/automatic-releases@v1"
with:
command-name: "laminas:automatic-releases:bump-changelog"
env:
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ env.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ env.GIT_AUTHOR_EMAIL }}
- name: "Create new milestones"
uses: "laminas/automatic-releases@v1"
with:
command-name: "laminas:automatic-releases:create-milestones"
env:
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
"GIT_AUTHOR_NAME": ${{ env.GIT_AUTHOR_NAME }}
"GIT_AUTHOR_EMAIL": ${{ env.GIT_AUTHOR_EMAIL }}
# vim:ft=yaml:et:ts=2:sw=2