Skip to content

v0.1.4

v0.1.4 #15

Workflow file for this run

---
name: "Release"
on:
release:
types:
- published
jobs:
release:
name: "Release google_assistant_sdk_custom"
runs-on: ubuntu-latest
steps:
- name: "⬇️ Checkout the repository"
uses: actions/checkout@v3
- 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/google_assistant_sdk_custom/manifest.json"
- name: "📦 Created zipped release package"
shell: bash
run: |
cd "${{ github.workspace }}/custom_components/google_assistant_sdk_custom"
zip google_assistant_sdk_custom.zip -r ./
- name: "⬆️ Upload zip to release"
uses: softprops/action-gh-release@v0.1.15
with:
files: ${{ github.workspace }}/custom_components/google_assistant_sdk_custom/google_assistant_sdk_custom.zip