File tree Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 push :
66 tags :
7- - " v *"
7+ - " *"
88
99jobs :
1010 release :
1313 steps :
1414 - name : Checkout Repository
1515 uses : actions/checkout@v2
16- with :
17- fetch-depth : 0
16+ - name : Get the version from the github tag ref
17+ id : get_version
18+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
1819 - uses : actions/setup-node@v3
1920 with :
2021 node-version : 14.20.0
2728 env :
2829 REACT_APP_BASE_API_URL : " /api/v1"
2930 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-
31+ REACT_APP_VERSION : ${{ steps.get_version.outputs.VERSION }}
3532 - name : Generate Changelog
3633 uses :
heinrichreimer/[email protected] 3734 with :
@@ -42,17 +39,15 @@ jobs:
4239 issuesWoLabels : " true"
4340 stripHeaders : " true"
4441 - name : Create release archive
45- 46- id : compress
47- with :
48- command : c
49- files : |
50- ./build
51- outPath : zenml-dashboard.tar.gz
42+ run : |
43+ tar -zcf zenml-dashboard.tar.gz -C build --transform="s#\.\/##" .
44+ sha256sum -b zenml-dashboard.tar.gz > zenml-dashboard.tar.gz.sha256
5245 - name : Release to GitHub
5346 uses : softprops/action-gh-release@v1
5447 with :
55- files : zenml-dashboard.tar.gz
48+ files : |
49+ zenml-dashboard.tar.gz
50+ zenml-dashboard.tar.gz.sha256
5651 body_path : ./CHANGELOG.md
5752 prerelease : " true"
5853 env :
You can’t perform that action at this time.
0 commit comments