v1.2.0 #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
release: | |
name: Release the Spook! π» | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- name: β€΅οΈ Check out code from GitHub | |
uses: actions/checkout@v4.0.0 | |
- name: π’ Adjust version number | |
shell: bash | |
run: | | |
version="${{ github.event.release.tag_name }}" | |
version="${version,,}" | |
version="${version#v}" | |
yq e -P -o=json \ | |
-i ".version = \"${version}\"" \ | |
"${{ github.workspace }}/custom_components/spook/manifest.json" | |
yq e -P -o=json \ | |
-i ".version = \"${version}\"" \ | |
"${{ github.workspace }}/custom_components/spook/integrations/spook_inverse/manifest.json" | |
- name: π¦ Created zipped release package | |
shell: bash | |
run: | | |
cd "${{ github.workspace }}/custom_components/spook" | |
zip spook.zip -r ./ | |
- name: π Sign release package | |
uses: sigstore/gh-action-sigstore-python@v2.0.1 | |
with: | |
inputs: ${{ github.workspace }}/custom_components/spook/spook.zip | |
- name: β¬οΈ Upload zip to release | |
uses: softprops/action-gh-release@v0.1.15 | |
with: | |
files: ${{ github.workspace }}/custom_components/spook/spook.zip | |
# Upload this one in the future, currently problematic for HACS | |
# https://github.com/frenck/spook/issues/286 | |
# ${{ github.workspace }}/custom_components/spook/spook.zip.sigstore |