Skip to content

Commit

Permalink
👷 updated action for release file
Browse files Browse the repository at this point in the history
  • Loading branch information
chriamue committed Jan 21, 2022
1 parent 3f1bd82 commit 360243f
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Release
on:
push:
branches: [main]
#tags:
# - v*
tags:
- v*

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -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

0 comments on commit 360243f

Please sign in to comment.