13
13
go-version : 1.13
14
14
id : go
15
15
16
+ - name : Use Node.js 12.x
17
+ uses : actions/setup-node@v1
18
+ with :
19
+ node-version : 12.x
20
+
16
21
- name : Extract branch name
17
22
shell : bash
18
23
run : echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
@@ -38,28 +43,15 @@ jobs:
38
43
GOOS=windows GOARCH=amd64 go build -v -o ${GITHUB_REPOSITORY##*/}-win32-x64 ./...
39
44
GOOS=windows GOARCH=386 go build -v -o ${GITHUB_REPOSITORY##*/}-win32-ia32 ./...
40
45
GOOS=darwin GOARCH=amd64 go build -v -o ${GITHUB_REPOSITORY##*/}-darwin-x64 ./...
41
-
42
- - name : Create a Release
43
- id : create_release
44
- uses : actions/create-release@v1
45
- env :
46
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
- with :
48
- tag_name : ${{ steps.extract_branch.outputs.branch }}
49
- release_name : ${{ steps.extract_branch.outputs.branch }}
50
- draft : false
51
- prerelease : false
52
46
53
- - name : Upload a Release Asset
54
-
55
- env :
56
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
+ - name : Generate changelog
48
+ run : |
49
+ npm install -g conventional-changelog-cli
50
+ conventional-changelog -p angular -i CHANGELOG.md -s -r 0 -v
51
+
52
+ - uses : ncipollo/release-action@v1
57
53
with :
58
- # The URL for uploading assets to the release
59
- upload_url : ${{ steps.create_release.outputs.upload_url }}
60
- # The path to the asset you want to upload
61
- asset_path : ${{ steps.extract_repo.outputs.repo }}-linux-x64
62
- # The name of the asset you want to upload
63
- asset_name : ${{ steps.extract_repo.outputs.repo }}-linux-x64
64
- # The content-type of the asset you want to upload. See the supported Media Types here: https://www.iana.org/assignments/media-types/media-types.xhtml for more information
65
- asset_content_type : application/x-elf
54
+ artifacts : ${{ steps.extract_repo.outputs.repo }}-*
55
+ bodyFile : " CHANGELOG.md"
56
+ token : ${{ secrets.GITHUB_TOKEN }}
57
+
0 commit comments