Skip to content

Update for PyPI publish. #3

Update for PyPI publish.

Update for PyPI publish. #3

Workflow file for this run

name: PyQUDA publish
on:
workflow_dispatch:
inputs:
tag:
description: Which tag to create and release?
required: true
default: 0.0.0
jobs:
pypi-publish:

Check failure on line 13 in .github/workflows/PyQUDA.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/PyQUDA.yaml

Invalid workflow file

You have an error in your yaml syntax on line 13
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/PyQUDA
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel Cython build
- name: Build sdist
run: python -m build ./pyquda_core --sdist
- name: Upload sdist
if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag != ''
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ github.event.inputs.tag }}
files: pyquda_core/dist/pyquda-${{ github.event.inputs.tag }}.tar.gz
fail_on_unmatched_files: true
- name: Prepare sdist
run: mv ./pyquda_core/sdist ./
- name: Publish sdist
uses: pypa/gh-action-pypi-publish@release/v1