Create Release ZIP #5
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: Create Release ZIP | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: Build Release ZIP | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Package Custom Component | |
run: | | |
mkdir -p build | |
zip -r build/mbtalive.zip custom_components/mbtalive | |
# Upload the ZIP file to the GitHub Release | |
- name: Upload Release Asset (using gh) | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release upload ${{ github.event.release.id }} build/mbtalive.zip |