File tree 1 file changed +23
-5
lines changed
1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change 1
- on :
2
- push :
3
- branches : [main]
4
-
5
1
name : Release
6
2
3
+ on :
4
+ schedule :
5
+ # 9 AM UTC on every Monday
6
+ - cron : " 0 9 * * Mon"
7
+ workflow_dispatch :
8
+ inputs :
9
+ pre-release :
10
+ type : boolean
11
+ description : Mark "Pre-Release"
12
+ required : false
13
+ default : true
14
+
7
15
permissions :
8
16
contents : write
9
17
@@ -119,9 +127,19 @@ jobs:
119
127
tag : ${{ github.ref_name }}
120
128
run : ${{ github.run_number }}
121
129
run : |
130
+ if [[ "${{ github.event.inputs.pre-release }}" == "true" ]]; then
131
+ RELEASE_TYPE_NAME=Pre-Release
132
+ PRERELEASE_ARG=--prerelease
133
+ else
134
+ RELEASE_TYPE_NAME=Release
135
+ PRERELEASE_ARG=
136
+ fi
137
+
122
138
today=$(date '+%Y-%m-%d')
123
139
gh release create "$today-$tag-$run" \
124
140
--repo="$GITHUB_REPOSITORY" \
125
- --title="RustPython Release $today-$tag #$run" \
141
+ --title="RustPython $RELEASE_TYPE_NAME $today-$tag #$run" \
126
142
--target="$tag" \
143
+ --generate-notes \
144
+ $PRERELEASE_ARG \
127
145
bin/rustpython-release-*
You can’t perform that action at this time.
0 commit comments