Skip to content

Commit

Permalink
release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
signalkraft committed Nov 2, 2024
1 parent f02aab0 commit 344110f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,4 @@ jobs:
SKIP: pytest
- name: Run pytest
run: |
pytest
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: 'zip'
directory: 'custom_components/mypyllant'
filename: 'mypyllant-component.zip'
- name: Upload release zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "mypyllant-component.zip"
asset_name: "mypyllant-component.zip"
asset_content_type: application/zip
pytest
21 changes: 21 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build & Test

on:
release:

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: 'zip'
directory: 'custom_components/mypyllant'
filename: 'mypyllant-component.zip'
- name: Upload Release
uses: ncipollo/[email protected]
with:
artifacts: "mypyllant-component.zip"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 344110f

Please sign in to comment.