File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ # # Reference: https://github.com/release-drafter/release-drafter
2+ name : Create Release
3+
4+ on :
5+ push :
6+ branches :
7+ - master
8+
9+ jobs :
10+ create_release :
11+ name : Create Release
12+ runs-on : ubuntu-latest
13+ permissions :
14+ contents : write
15+ pull-requests : write
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v3
19+ with :
20+ fetch-depth : 0
21+
22+ - name : Set up jq
23+ 24+
25+ - name : Get release version from service.yaml
26+ run : |
27+ RELEASE_VERSION=$(jq -r '.version' package.json )
28+ echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
29+
30+ - uses : release-drafter/release-drafter@v5
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ with :
34+ publish : true
35+ version : ${{ env.RELEASE_VERSION }}
36+ config-name : release-drafter.yaml
You can’t perform that action at this time.
0 commit comments