Skip to content

ci: fix build and deploy (#354) #287

ci: fix build and deploy (#354)

ci: fix build and deploy (#354) #287

Workflow file for this run

name: release
on:
push:
branches: [ master ]
jobs:
test:
uses: ./.github/workflows/test_and_build.yml
secrets: inherit
build:
runs-on: ubuntu-latest
environment: CD
needs:
- build

Check failure on line 17 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 17, Col: 7): Job 'build' depends on job 'build' which creates a cycle in the dependency graph.
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry lock
poetry install
- name: Build package
run: poetry build
- name: Build docs
run: cd docs && make html
- name: Release to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload --verbose dist/* || echo 'Version exists'