From aab1183ffb29819729e7b3fa3f8378cdf5717534 Mon Sep 17 00:00:00 2001 From: hsm207 Date: Wed, 31 Jan 2024 16:50:14 +0000 Subject: [PATCH] try fixing mark release job --- .github/workflows/_release.yml | 73 +++++++++++++++++----------------- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index c9a3cfb..3b38734 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -179,49 +179,50 @@ jobs: # # make tests # # working-directory: . - publish: - needs: - - build - - test-pypi-publish - runs-on: ubuntu-latest - permissions: - # This permission is used for trusted publishing: - # https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/ - # - # Trusted publishing has to also be configured on PyPI for each package: - # https://docs.pypi.org/trusted-publishers/adding-a-publisher/ - id-token: write + # publish: + # needs: + # - build + # - test-pypi-publish + # runs-on: ubuntu-latest + # permissions: + # # This permission is used for trusted publishing: + # # https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/ + # # + # # Trusted publishing has to also be configured on PyPI for each package: + # # https://docs.pypi.org/trusted-publishers/adding-a-publisher/ + # id-token: write - defaults: - run: - working-directory: . + # defaults: + # run: + # working-directory: . - steps: - - uses: actions/checkout@v4 + # steps: + # - uses: actions/checkout@v4 - - name: Set up Python + Poetry ${{ env.POETRY_VERSION }} - uses: "./.github/actions/poetry_setup" - with: - python-version: ${{ env.PYTHON_VERSION }} - poetry-version: ${{ env.POETRY_VERSION }} - working-directory: . - cache-key: release + # - name: Set up Python + Poetry ${{ env.POETRY_VERSION }} + # uses: "./.github/actions/poetry_setup" + # with: + # python-version: ${{ env.PYTHON_VERSION }} + # poetry-version: ${{ env.POETRY_VERSION }} + # working-directory: . + # cache-key: release - - uses: actions/download-artifact@v3 - with: - name: dist - path: ./dist/ + # - uses: actions/download-artifact@v3 + # with: + # name: dist + # path: ./dist/ - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: ./dist/ - verbose: true - print-hash: true + # - name: Publish package distributions to PyPI + # uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # packages-dir: ./dist/ + # verbose: true + # print-hash: true mark-release: needs: - - publish + # - publish + - build runs-on: ubuntu-latest permissions: # This permission is needed by `ncipollo/release-action` to @@ -250,7 +251,7 @@ jobs: - name: Create Release uses: ncipollo/release-action@v1 - if: ${{ inputs.working-directory == 'libs/langchain-weaviate' }} + # if: ${{ inputs.working-directory == 'libs/langchain-weaviate' }} with: artifacts: "dist/*" token: ${{ secrets.GITHUB_TOKEN }}