3.3.2.post2 - Explicitly named packages, updated replacement tag #29
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
# SPDX-FileCopyrightText: 2022 Alec Delaney | |
# | |
# SPDX-License-Identifier: MIT | |
name: Release CI | |
on: | |
release: | |
types: [published] | |
jobs: | |
upload-pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up latest Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Install dependencies for building | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade build twine | |
- name: Build and publish | |
env: | |
TWINE_USERNAME: ${{ secrets.pypi_username }} | |
TWINE_PASSWORD: ${{ secrets.pypi_password }} | |
run: | | |
find -type f -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) -exec sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" {} + | |
python -m build | |
twine upload dist/* |