Skip to content

Merge pull request #2 from NellyWhads/python_38 #4

Merge pull request #2 from NellyWhads/python_38

Merge pull request #2 from NellyWhads/python_38 #4

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
tags:
- v*
jobs:
build_wheels:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Poetry
uses: snok/[email protected]
- name: Build
run: poetry build
- uses: actions/upload-artifact@v3
with:
path: ./dist/*
upload_pypi:
name: Upload to PyPI
needs: [build_wheels]
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true