From accb60b51dd4a953fd60ee828d740b60adf71d03 Mon Sep 17 00:00:00 2001 From: miili Date: Thu, 7 Mar 2024 22:51:17 +0100 Subject: [PATCH] ci: build pipeline --- .github/workflows/build.yaml | 39 ++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 936ae090..edb52270 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,7 +1,6 @@ name: Deploy on: - pull_request: push: branches: - main @@ -35,34 +34,34 @@ jobs: runs-on: ubuntu-latest needs: build_wheels steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 # Optional, use if you use setuptools_scm - submodules: false # Optional, use if you have submodules + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Optional, use if you use setuptools_scm + submodules: false # Optional, use if you have submodules - - name: Build SDist - run: pipx run build --sdist + - name: Build SDist + run: pipx run build --sdist - - uses: actions/upload-artifact@v4 - with: - name: cibw-sdist - path: dist/*.tar.gz + - uses: actions/upload-artifact@v4 + with: + name: cibw-sdist + path: dist/*.tar.gz pypi-publish: name: Upload release to PyPI - if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes + if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes needs: [build_wheels, make_sdist] runs-on: ubuntu-latest environment: name: pypi url: https://pypi.org/p/qseek permissions: - id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - - name: Download all the wheels and sdists - uses: actions/download-artifact@v3 - with: - pattern: cibw-* - path: dist/ - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + - name: Download all the wheels and sdists + uses: actions/download-artifact@v3 + with: + pattern: cibw-* + path: dist/ + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1