Skip to content

v0.0.11 🏳️‍🌈 #14

v0.0.11 🏳️‍🌈

v0.0.11 🏳️‍🌈 #14

Workflow file for this run

name: Release
on:
release:
types:
- published
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
- 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/qss/manifest.json"
- name: 📦 Created zipped release package
shell: bash
run: |
cd "${{ github.workspace }}/custom_components/qss"
zip qss.zip -r ./
- name: 🔏 Sign release package
uses: sigstore/[email protected]
with:
inputs: ${{ github.workspace }}/custom_components/qss/qss.zip
- name: ⬆️ Upload zip to release
uses: softprops/[email protected]
with:
files: ${{ github.workspace }}/custom_components/qss/qss.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