0.84.0 #83
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: Upload Python Package | |
on: | |
release: | |
types: | |
- published | |
permissions: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: "3.x" | |
- name: Verify version | |
uses: home-assistant/actions/helpers/verify-version@master | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools build | |
- name: Build | |
run: | | |
python -m build | |
- name: Upload dists | |
uses: actions/[email protected] | |
with: | |
name: "dist" | |
path: "dist/" | |
if-no-files-found: error | |
retention-days: 5 | |
publish: | |
name: Upload release to PyPI | |
runs-on: ubuntu-latest | |
needs: "build" | |
environment: | |
name: release | |
url: https://pypi.org/p/hass-nabucasa | |
permissions: | |
id-token: write | |
steps: | |
- name: Download dists | |
uses: actions/[email protected] | |
with: | |
name: "dist" | |
path: "dist/" | |
- name: Publish dists to PyPI | |
# Pinned to a commit for security purposes | |
uses: pypa/gh-action-pypi-publish@fb13cb306901256ace3dab689990e13a5550ffaa # v1.11.0 |