From 6978121b1f1607ea058b2a5664c48308ca06860a Mon Sep 17 00:00:00 2001 From: Jacob McSwain Date: Sat, 19 Oct 2019 18:30:31 -0500 Subject: [PATCH] Update Releases to push when I tag --- .github/workflows/release.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 582119d..a1d5275 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,19 +1,20 @@ -name: Release zip +name: Releases -on: release +on: + push: + tags: + - '*' jobs: - build: + build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v1 - name: Package up a release run: zip -r ../badnest.zip hacs.json info.md custom_components - - name: Run a multi-line script - uses: JasonEtco/upload-to-release@master + - uses: ncipollo/release-action@v1 with: - args: ../badnest.zip - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + artifact: ../badnest.zip + artifactContentType: application/zip + token: ${{ secrets.GITHUB_TOKEN }}