Skip to content

v3.2.5

v3.2.5 #18

Workflow file for this run

---
name: Upload Python Package
# yamllint disable-line rule:truthy
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install build
- name: Build
run: python -m build .
- uses: actions/upload-artifact@v4
with:
path: ./dist
name: dist
pypi-publish:
needs: ['build']
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/prometheus-pve-exporter/
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
path: ./dist
name: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1