File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ # Sequence of patterns matched against refs/tags
4+ tags :
5+ - ' v2.2.9' # Push events to matching v*, i.e. v1.0, v20.15.10
6+
7+ name : Create Release
8+
9+ jobs :
10+ build :
11+ name : Create Release
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v2
16+ - name : Create release
17+ id : create_release
18+ uses : actions/create-release@v1
19+ env :
20+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
21+ with :
22+ tag_name : ${{ github.ref }}
23+ release_name : Release ${{ github.ref }}
24+ body : |
25+ Changes in this Release
26+ - First Change
27+ - Second Change
28+ draft : true
29+ prerelease : false
30+ - name : Upload release asset
31+ uses : actions/upload-release-asset@v1
32+ env :
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+ with :
35+ upload_url : ${{ steps.create_release.outputs.upload_url }}
36+ asset_path : ./path/to/asset.zip
37+ asset_name : asset.zip
38+ asset_content_type : application/zip
39+ - name : Publish release
40+ uses : StuYarrow/publish-release@v1.1.2
41+ env :
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43+ with :
44+ id : ${{ steps.create_release.outputs.id }}
Original file line number Diff line number Diff line change @@ -46,19 +46,19 @@ generate_features:
4646
4747increment_sub_version :
4848 @echo " Incrementing sub version from $( VERSION) to $( UPDATE_SUB_VERSION) "
49- sed -i " s/$( VERSION) /$( UPDATE_SUB_VERSION) /" mysqltuner.pl * .md
49+ sed -i " s/$( VERSION) /$( UPDATE_SUB_VERSION) /" mysqltuner.pl * .md .github/workflows/ * .yml
5050 git add ./* .md ./mysqltuner.pl
5151 git commit -m " Generate $( UPDATE_SUB_VERSION) sub version at $( shell date --iso=seconds) "
5252
5353increment_minor_version :
5454 @echo " Incrementing minor version from $( VERSION) to $( UPDATE_MINOR_VERSION) "
55- sed -i " s/$( VERSION) /$( UPDATE_MINOR_VERSION) /" mysqltuner.pl * .md
55+ sed -i " s/$( VERSION) /$( UPDATE_MINOR_VERSION) /" mysqltuner.pl * .md .github/workflows/ * .yml
5656 git add ./* .md ./mysqltuner.pl
5757 git commit -m " Generate $( UPDATE_SUB_VERSION) minor version at $( shell date --iso=seconds) "
5858
5959increment_major_version :
6060 @echo " Incrementing major version from $( VERSION) to $( UPDATE_MAJOR_VERSION) "
61- sed -i " s/$( VERSION) /$( UPDATE_MAJOR_VERSION) /" mysqltuner.pl * .md
61+ sed -i " s/$( VERSION) /$( UPDATE_MAJOR_VERSION) /" mysqltuner.pl * .md .github/workflows/ * .yml
6262 git add ./* .md ./mysqltuner.pl
6363 git commit -m " Generate $( UPDATE_SUB_VERSION) major version at $( shell date --iso=seconds) "
6464
You can’t perform that action at this time.
0 commit comments