Skip to content

fix workflows

fix workflows #2

Workflow file for this run

name: PYPI-Publish
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:

Check failure on line 18 in .github/workflows/pypi-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pypi-publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
python-version: "3".10"
- name: Install build dependencies
run: python -m pip install --upgrade build
- name: Build source distribution
run: python -m build .
- name: Publish artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*
publish:
name: Publish
needs: build
if: "success()"
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}