From d0d2325ebe790c87f3bcfd991ab173ac8f081e29 Mon Sep 17 00:00:00 2001 From: Matthew Schick Date: Tue, 26 May 2020 10:34:38 -0400 Subject: [PATCH] Tweak actions --- .github/release-drafter.yml | 19 ------------------- .github/workflows/release-draft.yml | 14 -------------- .github/workflows/release.yml | 25 +++++++++++++++++-------- .github/workflows/validate.yml | 10 +++++----- 4 files changed, 22 insertions(+), 46 deletions(-) delete mode 100644 .github/release-drafter.yml delete mode 100644 .github/workflows/release-draft.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index d764f3d..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,19 +0,0 @@ -name-template: '$NEXT_PATCH_VERSION' -tag-template: '$NEXT_PATCH_VERSION' -categories: - - title: 'Features' - labels: - - 'feature' - - 'enhancement' - - title: 'Bug Fixes' - labels: - - 'fix' - - 'bugfix' - - 'bug' - - title: 'Maintenance' - label: 'maintenance' -change-template: '- $TITLE @$AUTHOR (#$NUMBER)' -template: | - ## Changes - - $CHANGES \ No newline at end of file diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml deleted file mode 100644 index e8a18f8..0000000 --- a/.github/workflows/release-draft.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Release Management - -on: - push: - branches: - - master - -jobs: - update_draft_release: - runs-on: ubuntu-latest - steps: - - uses: toolmantim/release-drafter@v5.2.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e517ce..80632fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,10 @@ -name: Release uploader +name: Release + +on: + release: + types: + - publish -on: release jobs: upload_release: @@ -8,10 +12,15 @@ jobs: steps: - name: Pull source uses: actions/checkout@v1 - - name: Package up a release - run: zip -r badnest.zip hacs.json info.md custom_components - - uses: JasonEtco/upload-to-release@master + - name: Zip up release + run: | + zip badnest.zip -r ./ + working-directory: custom_components/badnest + - name: Upload zip to release + uses: svenstaro/upload-release-action@v1-release with: - args: badnest.zip application/zip - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ github.workspace }}/custom_components/badnest/badnest.zip + asset_name: badnest.zip + tag: ${{ github.ref }} + overwrite: true diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index f688ec6..602a78b 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -18,8 +18,8 @@ jobs: uses: "actions/checkout@v2" - name: Hassfest validation uses: "home-assistant/actions/hassfest@master" - - name: HACS validation - uses: "hacs/integration/action@master" - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CATEGORY: "integration" + # - name: HACS validation + # uses: "hacs/integration/action@master" + # with: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # CATEGORY: "integration"