Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Tweak actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsch committed May 26, 2020
1 parent dc6fbbb commit d0d2325
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 46 deletions.
19 changes: 0 additions & 19 deletions .github/release-drafter.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/release-draft.yml

This file was deleted.

25 changes: 17 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
name: Release uploader
name: Release

on:
release:
types:
- publish

on: release

jobs:
upload_release:
runs-on: ubuntu-latest
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
10 changes: 5 additions & 5 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit d0d2325

Please sign in to comment.