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 }}