0.6.1 #7
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: nuance/publish | |
on: | |
release: | |
types: [published] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
ci: | |
name: Build & Publish w/Poetry | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
os: [ ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
env: | |
PROJECT_NAME: "nuance" | |
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Setup Poetry Configuration 🛠️ | |
run: poetry config pypi-token.pypi $PYPI_API_TOKEN | |
- name: Install Dependencies | |
run: poetry install --no-root --no-dev | |
- name: Build Package 🐍 | |
run: poetry build | |
- name: Dry-run Publish to PyPI 😬 | |
run: poetry publish --dry-run | |
- name: Publish to PyPI 🚀 | |
run: poetry publish --skip-existing |