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