build(deps): bump sphinx-rtd-theme from 1.2.2 to 1.3.0 (#889) #106
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: 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 | |
- name: 🛠️ Set up Python | |
uses: actions/[email protected] | |
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/[email protected] | |
if: ${{ github.event_name == 'push' }} | |
with: | |
name: ocpp | |
path: ${{ github.workspace }}/custom_components/ocpp | |
# 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/ocpp | |
zip ocpp.zip -r ./ | |
- name: 📤 Upload zip to release | |
uses: softprops/action-gh-release@v1 | |
if: ${{ github.event_name == 'release' }} | |
with: | |
files: ${{ github.workspace }}/custom_components/ocpp/ocpp.zip |