Skip to content

Bump actions/checkout from 6.0.0 to 6.0.1 (#84) #64

Bump actions/checkout from 6.0.0 to 6.0.1 (#84)

Bump actions/checkout from 6.0.0 to 6.0.1 (#84) #64

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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- 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