diff --git a/.github/workflows/python-package.yaml b/.github/workflows/python-package.yaml new file mode 100644 index 0000000..bf829b9 --- /dev/null +++ b/.github/workflows/python-package.yaml @@ -0,0 +1,37 @@ +name: Python package + +on: + workflow_dispatch: + inputs: + tag: + description: Which tag to create and release? + required: true + default: v0.0.0 + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.7" + + - name: Install dependencies + run: python -m pip install --upgrade pip setuptools wheel Cython + + - name: Build sdist + run: python setup.py sdist + + - name: Upload sdist + if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag != '' + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ github.event.inputs.tag }} + files: dist/PyQuda-${{ github.event.inputs.tag }}.tar.gz + fail_on_unmatched_files: true diff --git a/pyquda/version.py b/pyquda/version.py index 63af887..364e7ba 100644 --- a/pyquda/version.py +++ b/pyquda/version.py @@ -1 +1 @@ -__version__ = "0.6.3" +__version__ = "0.6.4"