Skip to content

Merge pull request #91 from dreadnode/feature/multimodal-extras-remov… #17

Merge pull request #91 from dreadnode/feature/multimodal-extras-remov…

Merge pull request #91 from dreadnode/feature/multimodal-extras-remov… #17

Workflow file for this run

---
name: Build and Publish
on:
push:
tags: ["v*"]
jobs:
build-and-publish:
name: Build and Publish
environment: protected
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@09d2acae674a48949e3602304ab46fd20ae0c42f
- name: Setup Python
uses: actions/setup-python@5db1cf9a59fb97c40a68accab29236f0da7e94db
with:
python-version: "3.13"
- name: Install Poetry
uses: abatilo/actions-poetry@b8f6fe29ba2eb78e0d45ccbf41cd14154c4e25b2
- name: Configure Poetry
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Install package
run: poetry install
- name: Validate version
run: |
TAG_VERSION=${GITHUB_REF#refs/tags/v}
POETRY_VERSION=$(poetry version -s)
if [ "$TAG_VERSION" != "$POETRY_VERSION" ]; then
echo "Tag ($TAG_VERSION) doesn't match pyproject.toml ($POETRY_VERSION)"
exit 1
fi
- name: Build package
run: poetry build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@e9ccbe5a211ba3e8363f472cae362b56b104e796