diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index a4228d4..650d7a6 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -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/zip-release@0.7.5 - 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 \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..4eabd59 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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/zip-release@0.7.5 + with: + type: 'zip' + directory: 'custom_components/mypyllant' + filename: 'mypyllant-component.zip' + - name: Upload Release + uses: ncipollo/release-action@v1.12.0 + with: + artifacts: "mypyllant-component.zip" + token: ${{ secrets.GITHUB_TOKEN }}