Skip to content

Release

Release #1

Workflow file for this run

---
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.1.1
- 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/tariff_20td/manifest.json"
yq e -P -o=json \
-i ".version = \"${version}\"" \
"${{ github.workspace }}/custom_components/tariff_20td/integrations/tariff_20td_inverse/manifest.json"
- name: 📦 Created zipped release package
shell: bash
run: |
cd "${{ github.workspace }}/custom_components/tariff_20td"
zip tariff_20td.zip -r ./
- name: 🔏 Sign release package
uses: sigstore/gh-action-sigstore-python@v2.1.1
with:
inputs: ${{ github.workspace }}/custom_components/tariff_20td/tariff_20td.zip
- name: ⬆️ Upload zip to release
uses: softprops/action-gh-release@v2.0.4
with:
files: ${{ github.workspace }}/custom_components/tariff_20td/tariff_20td.zip