Skip to content

Workflow file for this run

name: Release PyPi

Check failure on line 1 in .github/workflows/release_pypi.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release_pypi.yaml

Invalid workflow file

Cannot define both `uses` and `steps` at the same time for the following jobs: release-job
on:
release:
types:
- created
jobs:
release-job:
name: Build and publish on PyPi
runs-on: ubuntu-latest
uses: ./.github/workflows/build_wheel.yml
steps:
- name: Check that the package version matches the Release name
run: |
grep -Rq "^Version: ${GITHUB_REF:10}$" outlines.egg-info/PKG-INFO
- name: Publish to PyPi
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}