Skip to content

remove line of sight where possible, cos it is slow now #31

remove line of sight where possible, cos it is slow now

remove line of sight where possible, cos it is slow now #31

Workflow file for this run

name: Publish Package to PyPI
on:
push:
tags:
- 'v*' # Trigger the workflow only when a tag starting with 'v' is pushed
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for all branches and tags
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Build and publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: | # poetry version must be set to tag name
version=$(git describe --tags --abbrev=0)
poetry version $version
poetry publish --build