From 344110f0d1a6567a3fe7e637163295b181f64251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20D=C3=B6rner?= Date: Sat, 2 Nov 2024 14:21:04 +0100 Subject: [PATCH] release workflow --- .github/workflows/build-test.yaml | 21 +-------------------- .github/workflows/release.yaml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/release.yaml 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 }}