v1.1.5 #8
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: 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@v2 | |
with: | |
python-version: 3.8 | |
- name: Get version | |
id: version | |
uses: home-assistant/actions/helpers/version@master | |
- name: "Set version number" | |
run: | | |
python3 ${{ github.workspace }}/manage/update_manifest.py --version ${{ steps.version.outputs.version }} | |
# Pack the stadtreinigung_hamburg dir as a zip and upload to the release | |
- name: ZIP stadtreinigung_hamburg Dir | |
run: | | |
cd ${{ github.workspace }}/custom_components/hass_stadtreinigung_hamburg | |
zip stadtreinigung_hamburg.zip -r ./ | |
- name: Upload zip to release | |
uses: svenstaro/upload-release-action@v1-release | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{ github.workspace }}/custom_components/hass_stadtreinigung_hamburg/stadtreinigung_hamburg.zip | |
asset_name: stadtreinigung_hamburg.zip | |
tag: ${{ github.ref }} | |
overwrite: true |