Skip to content

PyQUDA-Utils publish #4

PyQUDA-Utils publish

PyQUDA-Utils publish #4

Workflow file for this run

name: PyQUDA-Utils publish
on:
workflow_dispatch:
jobs:
pypi-publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/PyQUDA-Utils
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 build
- name: Build sdist
run: python -m build . --sdist
# - name: Upload sdist
# if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag != ''
# uses: softprops/action-gh-release@v1
# with:
# files: dist/pyquda_utils-*.tar.gz
# fail_on_unmatched_files: true
- name: Publish sdist
uses: pypa/gh-action-pypi-publish@release/v1