Skip to content

Publish

Publish #25

Workflow file for this run

name: Publish
on:
workflow_run:
workflows: [ Release ]
types: [ completed ]
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: poetry
- run: poetry install
- name: Build distribution package
run: poetry build
- uses: actions/upload-artifact@v3
with:
name: package-dist
path: dist
retention-days: 1
publish:
needs: build
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/project/aiosteampy/
steps:
- uses: actions/download-artifact@v3
with:
name: package-dist
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1