From d6c8e37d3ddc080bba4ffc62b610c8123e251f06 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 21 Mar 2021 18:47:35 +0100 Subject: [PATCH 1/2] Signing asset --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 192fa26..fd18d4c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,3 +45,12 @@ jobs: asset_path: "${{ github.workspace }}/${{ matrix.variant.name }}" asset_name: ${{ matrix.variant.name }} asset_content_type: application/x-binary + + - name: Signing asset + if: needs.init.outputs.publish == 'true' + uses: home-assistant/actions/helpers/codenotary@master + with: + source: "${{ github.workspace }}/${{ matrix.variant.name }}" + user: ${{ secrets.VCN_USER }} + password: ${{ secrets.VCN_PASSWORD }} + organisation: ${{ secrets.VCN_ORG }} From e480f13167ef7a34ce72f685327091cb6fdc62d6 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 21 Mar 2021 18:49:08 +0100 Subject: [PATCH 2/2] fix event name --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fd18d4c..32f03b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,7 @@ jobs: asset_content_type: application/x-binary - name: Signing asset - if: needs.init.outputs.publish == 'true' + if: github.event_name == 'release' uses: home-assistant/actions/helpers/codenotary@master with: source: "${{ github.workspace }}/${{ matrix.variant.name }}"