Skip to content

Commit

Permalink
add release job
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm207 committed Jan 31, 2024
1 parent b2575a6 commit 4601dbe
Showing 1 changed file with 34 additions and 37 deletions.
71 changes: 34 additions & 37 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,45 +219,42 @@ jobs:
verbose: true
print-hash: true

# mark-release:
# needs:
# - build
# - test-pypi-publish
# - pre-release-checks
# - publish
# runs-on: ubuntu-latest
# permissions:
# # This permission is needed by `ncipollo/release-action` to
# # create the GitHub release.
# contents: write
mark-release:
needs:
- publish
runs-on: ubuntu-latest
permissions:
# This permission is needed by `ncipollo/release-action` to
# create the GitHub release.
contents: 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: Create Release
# uses: ncipollo/release-action@v1
# if: ${{ inputs.working-directory == 'libs/langchain' }}
# with:
# artifacts: "dist/*"
# token: ${{ secrets.GITHUB_TOKEN }}
# draft: false
# generateReleaseNotes: true
# tag: v${{ needs.build.outputs.version }}
# commit: master
- name: Create Release
uses: ncipollo/release-action@v1
if: ${{ inputs.working-directory == 'libs/langchain' }}
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
generateReleaseNotes: true
tag: v${{ needs.build.outputs.version }}
commit: master

0 comments on commit 4601dbe

Please sign in to comment.