v0.0.2 #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish-package | |
on: | |
release: | |
types: [published] | |
jobs: | |
pypi: | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/${{ github.event.repository.name }} | |
permissions: | |
contents: read # add default back in | |
id-token: write | |
steps: | |
- name: Check out repository | |
uses: actions/[email protected] | |
- name: Set up Python 3.x | |
uses: actions/[email protected] | |
with: | |
python-version: "3.x" | |
- name: Install Poetry | |
uses: snok/[email protected] | |
- name: Build the package | |
run: poetry build -vvv | |
- name: Publish package distributions to PyPI | |
uses: pypa/[email protected] |