Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludy87 committed Dec 29, 2024
1 parent 363887d commit 7b9ec11
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,19 @@ jobs:
run: |
cd ${{ github.workspace }}/custom_components/ipv64
zip -r ipv64.zip ./
- name: Generate artifact attestation
if: steps.checkTag.outputs.exists == 'false'
id: attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: ${{ github.workspace }}/custom_components/ipv64/ipv64.zip
- name: Copy Attestation
if: steps.checkTag.outputs.exists == 'false'
run: cp "$ATTESTATION" ${{ github.workspace }}/custom_components/ipv64/ipv64.zip.sigstore
env:
ATTESTATION: "${{ steps.attestation.outputs.bundle-path }}"

- name: Import GPG key
if: steps.checkTag.outputs.exists == 'false'
env:
Expand Down Expand Up @@ -117,6 +125,16 @@ jobs:
tag: ${{ steps.version.outputs.version }}
overwrite: true

- name: Upload zip to release
if: steps.checkTag.outputs.exists == 'false'
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/custom_components/ipv64/ipv64.zip.sigstore
asset_name: ipv64.zip.asc
tag: ${{ steps.version.outputs.version }}
overwrite: true

- name: Create Release
if: steps.checkTag.outputs.exists == 'false'
uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2.0.9
Expand Down

0 comments on commit 7b9ec11

Please sign in to comment.