v1.0.7 #11
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
## | |
## Copyright (c) 2022-2023 Geosiris. | |
## SPDX-License-Identifier: Apache-2.0 | |
## | |
--- | |
name: Publish release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-and-publish: | |
name: Build and Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📥 Checkout repository | |
uses: actions/checkout@v4 | |
- name: 🐍 Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: 💾 Cache Poetry dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pypoetry | |
key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | |
restore-keys: | | |
poetry-${{ runner.os }}- | |
- name: 📦 Install poetry | |
uses: abatilo/actions-poetry@v4 | |
with: | |
poetry-version: '2.1.1' | |
- name: 📦 Install poetry-dynamic-versioning | |
run: poetry self add "poetry-dynamic-versioning[plugin]" | |
- name: 📥 Install dependencies | |
run: poetry install --no-interaction --no-root | |
- name: 🛠️ Build the package | |
run: poetry build | |
- name: 🚀 Publish to PyPI | |
run: | | |
poetry config pypi-token.pypi ${{ secrets.POETRY_PYPI_TOKEN_PASSWORD }} | |
poetry publish |