v0.17 #15
Workflow file for this run
This file contains hidden or 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: Upload Python Package | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install build dependencies | |
run: | | |
python -m pip install --upgrade pip wheel build | |
- name: Build package | |
run: | | |
python -m build | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: docstring-to-markdown dist ${{ github.run_number }} | |
path: ./dist | |
pypi-publish: | |
name: Upload release to PyPI | |
runs-on: ubuntu-latest | |
needs: [build] | |
environment: | |
name: pypi | |
url: https://pypi.org/p/docstring-to-markdown | |
permissions: | |
id-token: write | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: docstring-to-markdown dist ${{ github.run_number }} | |
path: ./dist | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |