Skip to content

Commit 7c01b62

Browse files
committed
Build and publish v1.0.0 release
1 parent be477f1 commit 7c01b62

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/build.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Build app
22

33
on:
44
push:
5-
branches: main
65
tags:
76
- 'v*'
87

@@ -79,3 +78,24 @@ jobs:
7978
-S nss-http \
8079
-B nss-http/build/Release \
8180
&& make --directory=nss-http/build/Release package'
81+
82+
# ref: https://github.com/actions/create-release
83+
- name: Create release
84+
id: release
85+
uses: actions/create-release@v1
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
with:
89+
tag_name: ${{ github.ref }}
90+
release_name: Release ${{ github.ref }}
91+
92+
# ref: https://github.com/actions/upload-release-asset
93+
- name: Upload release assets
94+
uses: actions/upload-release-asset@v1
95+
env:
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+
with:
98+
upload_url: ${{ steps.release.outputs.upload_url }}
99+
asset_path: ./build/Release/nss-http-1.0.0-Linux.deb
100+
asset_name: nss-http-1.0.0-Linux.deb
101+
asset_content_type: application/gzip

0 commit comments

Comments
 (0)