Skip to content

0.39.0

0.39.0 #25

Workflow file for this run

name: Upload Python Package
on:
release:
types:
- published
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
- name: Set up Python
uses: actions/setup-python@v5.1.0
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/upload-artifact@v4.3.3
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/snitun
permissions:
id-token: write
steps:
- name: Download dists
uses: actions/download-artifact@v4.1.7
with:
name: "dist"
path: "dist/"
- name: Publish dists to PyPI
# Pinned to a commit for security purposes
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14