From 360243fe47b5c4759a14d1f672384fdf1503e149 Mon Sep 17 00:00:00 2001 From: Christian M Date: Fri, 21 Jan 2022 10:02:11 +0100 Subject: [PATCH] :construction_worker: updated action for release file --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c03e0c4..b9bafef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,8 @@ name: Release on: push: branches: [main] - #tags: - # - v* + tags: + - v* env: CARGO_TERM_COLOR: always @@ -34,3 +34,25 @@ jobs: with: name: Debian-Installer path: target/armv7-unknown-linux-gnueabihf/debian/*.deb + - run: cp target/armv7-unknown-linux-gnueabihf/debian/*.deb ornithology-pi.deb + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./ornithology-pi.deb + asset_name: ornithology-pi.deb + asset_content_type: application/vnd.debian.binary-package \ No newline at end of file