Skip to content

Commit

Permalink
try fixing mark release job
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm207 committed Jan 31, 2024
1 parent 2490cb1 commit aab1183
Showing 1 changed file with 37 additions and 36 deletions.
73 changes: 37 additions & 36 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit aab1183

Please sign in to comment.