Skip to content

Bump softprops/action-gh-release from 2.4.2 to 2.5.0 (#83) #63

Bump softprops/action-gh-release from 2.4.2 to 2.5.0 (#83)

Bump softprops/action-gh-release from 2.4.2 to 2.5.0 (#83) #63

Workflow file for this run

name: Publish
on:
release:
types:
- published
push:
branches:
- main
concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
release_zip_file:
name: Publish readme zip file asset
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: 🛠️ Set up Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: "3.13"
- name: 🔢 Get version
if: ${{ github.event_name == 'release' }}
id: version
uses: home-assistant/actions/helpers/version@6778c32c6da322382854bd824e30fd4a4f3c20e5 # master
# Pack the readme dir as a zip and upload to the release
- name: 📦 ZIP readme dir
run: |
cd ${{ github.workspace }}/custom_components/readme
zip readme.zip -r ./
- name: 📤 Upload zip to action
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
if: ${{ github.event_name == 'push' }}
with:
name: readme.zip
path: ${{ github.workspace }}/custom_components/readme/readme.zip
retention-days: 7
- name: 📤 Upload zip to release
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
if: ${{ github.event_name == 'release' }}
with:
files: ${{ github.workspace }}/custom_components/readme/readme.zip