From 7c01b62c2c58a595409f833ed7198898000bd711 Mon Sep 17 00:00:00 2001 From: Lars Gunnarsson Date: Tue, 13 Jul 2021 17:23:01 +0200 Subject: [PATCH] Build and publish v1.0.0 release --- .github/workflows/build.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4f156bf..a6ca735 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,7 +2,6 @@ name: Build app on: push: - branches: main tags: - 'v*' @@ -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