Skip to content

Commit

Permalink
Build and publish v1.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
1nfiniteloop committed Jul 13, 2021
1 parent be477f1 commit 7c01b62
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build app

on:
push:
branches: main
tags:
- 'v*'

Expand Down Expand Up @@ -79,3 +78,24 @@ jobs:
-S nss-http \
-B nss-http/build/Release \
&& make --directory=nss-http/build/Release package'
# ref: https://github.com/actions/create-release
- name: Create release
id: release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}

# ref: https://github.com/actions/upload-release-asset
- name: Upload release assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: ./build/Release/nss-http-1.0.0-Linux.deb
asset_name: nss-http-1.0.0-Linux.deb
asset_content_type: application/gzip

0 comments on commit 7c01b62

Please sign in to comment.