v0.7.0-beta #6
Workflow file for this run
This file contains hidden or 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
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build: | |
| name: 🚀 Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Get version | |
| id: version | |
| uses: home-assistant/actions/helpers/version@master | |
| - name: 🔢 Adjust version number | |
| run: | | |
| sed -i 's/v0.0.0/${{ steps.version.outputs.version }}/' custom_components/victron/manifest.json | |
| - name: 📦 Created zipped release package | |
| shell: bash | |
| run: | | |
| cd "${{ github.workspace }}/custom_components/victron" | |
| zip victron.zip ./* -x '.*' | |
| - name: 🔏 Sign release package | |
| uses: sigstore/[email protected] | |
| with: | |
| inputs: ${{ github.workspace }}/custom_components/victron/victron.zip | |
| - name: ⬆️ Upload zip to release | |
| uses: softprops/[email protected] | |
| with: | |
| files: ${{ github.workspace }}/custom_components/victron/victron.zip |