Skip to content

Version 0.1.4

Version 0.1.4 #18

Workflow file for this run

name: Upload to PyPi
on:
release:
types: [published]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
fetch-tags: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies and Build
run: |
python -m pip install --upgrade pip
pip install setuptools build
python -m build --sdist --wheel --outdir dist/ .
- name: Check distribution files
run: |
pip install twine
twine check dist/*
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1