v3.0.0 #18
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
# Combine files and upload it as zip to the release | |
# Original file from https://github.com/hacs/integration/blob/main/.github/workflows/release.yml | |
name: Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
release_zip_file: | |
name: Prepare release asset | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: "Set version number" | |
run: | | |
python3 ${{ github.workspace }}/.github/helpers/update_manifest.py --version ${GITHUB_REF##*/} | |
- name: Combine ZIP | |
run: | | |
cd ${{ github.workspace }}/custom_components/frank_energie | |
zip frank_energie.zip -r ./ | |
- name: Get release | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: ${{ github.workspace }}/custom_components/frank_energie/frank_energie.zip | |
asset_name: frank_energie.zip | |
asset_content_type: application/zip |