Skip to content

Bump release-drafter/release-drafter from 5.23.0 to 5.24.0 (#83) #97

Bump release-drafter/release-drafter from 5.23.0 to 5.24.0 (#83)

Bump release-drafter/release-drafter from 5.23.0 to 5.24.0 (#83) #97

Workflow file for this run

name: Publish
on:
release:
types:
- published
push:
branches:
- main
jobs:
release_zip_file:
name: Publish zip file asset
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v3.5.3
- name: 🛠️ Set up Python
uses: actions/setup-python@v4.6.0
with:
python-version: "3.x"
- 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 }}
- name: 📤 Upload zip to action
uses: actions/upload-artifact@v3.1.2
if: ${{ github.event_name == 'push' }}
with:
name: solarweb
path: ${{ github.workspace }}/custom_components/solarweb
# Pack the dir as a zip and upload to the release
- name: 📦 ZIP Dir
if: ${{ github.event_name == 'release' }}
run: |
cd ${{ github.workspace }}/custom_components/solarweb
zip solarweb.zip -r ./
- name: 📤 Upload zip to release
uses: softprops/action-gh-release@v1
if: ${{ github.event_name == 'release' }}
with:
files: ${{ github.workspace }}/custom_components/solarweb/solarweb.zip