Mussel bg areas -> 0 #50
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: '🐍 PyPI Publish' | |
on: | |
push: | |
branches-ignore: | |
- '**' | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
- 'v[0-9]+.[0-9]+.[0-9]+rc[0-9]+' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get tag | |
id: tag | |
run: echo "tag=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Setup Poetry | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: 1.6.1 | |
- name: Install dependencies | |
run: | | |
poetry update | |
poetry run pip install --upgrade setuptools | |
- name: Build and publish | |
env: | |
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} | |
run: | | |
poetry version ${{ env.tag }} | |
sed -i "s/0.0.0/${{ env.tag }}/g" kelp_o_matic/__init__.py | |
poetry publish --build |