new action
This commit is contained in:
parent
dfb5f17d29
commit
7d25883300
1 changed files with 4 additions and 19 deletions
23
.github/workflows/build-deb.yml
vendored
23
.github/workflows/build-deb.yml
vendored
|
@ -15,23 +15,8 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- run: chmod 755 homeassistant-supervised/DEBIAN/p*
|
- run: chmod 755 homeassistant-supervised/DEBIAN/p*
|
||||||
- run: dpkg-deb --build --root-owner-group homeassistant-supervised
|
- run: dpkg-deb --build --root-owner-group homeassistant-supervised
|
||||||
- name: Create Release
|
- name: Release
|
||||||
id: create_release
|
uses: softprops/action-gh-release@v1
|
||||||
uses: actions/create-release@v1
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
files: homeassistant-supervised.deb
|
||||||
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 }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
|
||||||
asset_path: ./homeassistant-supervised.deb
|
|
||||||
asset_name: homeassistant-supervised.deb
|
|
||||||
asset_content_type: application/octet-stream
|
|
Loading…
Reference in a new issue