File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release-pipeline
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ tags :
7+ - " v*"
8+
9+ jobs :
10+ release :
11+ name : Release
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout Repository
15+ uses : actions/checkout@v2
16+ with :
17+ fetch-depth : 0
18+ - uses : actions/setup-node@v3
19+ with :
20+ node-version : 14.20.0
21+ - name : Install yarn
22+ run : npm install --global yarn
23+ - name : Build
24+ run : |
25+ yarn install
26+ yarn build
27+ env :
28+ REACT_APP_BASE_API_URL : " /api/v1"
29+ REACT_APP_MOCKAPI_RESPONSE : false
30+
31+ - name : Get the version from the github tag ref
32+ id : get_version
33+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
34+
35+ - name : Generate Changelog
36+ uses :
heinrichreimer/[email protected] 37+ with :
38+ token : ${{ secrets.GITHUB_TOKEN }}
39+ pullRequests : " false"
40+ onlyLastTag : " true"
41+ stripGeneratorNotice : " true"
42+ issuesWoLabels : " true"
43+ stripHeaders : " true"
44+ - name : Release to GitHub
45+ uses : softprops/action-gh-release@v1
46+ with :
47+ files : ./build/*
48+ body_path : ./CHANGELOG.md
49+ prerelease : " true"
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments