mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 04:31:13 +00:00
fix publish workflows with missing tag job, some tests and bump fastapi
This commit is contained in:
27
.github/workflows/publish-openbb-jodi.yml
vendored
27
.github/workflows/publish-openbb-jodi.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.base.ref || 'develop' }}
|
||||
ref: ${{ github.event.pull_request.merge_commit_sha || github.sha }}
|
||||
|
||||
- name: Parse [project].version from pyproject.toml
|
||||
id: parse
|
||||
@@ -88,7 +88,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.base.ref || 'develop' }}
|
||||
ref: ${{ github.event.pull_request.merge_commit_sha || github.sha }}
|
||||
|
||||
- uses: actions/setup-python@v6
|
||||
with:
|
||||
@@ -132,7 +132,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.base.ref || 'develop' }}
|
||||
ref: ${{ github.event.pull_request.merge_commit_sha || github.sha }}
|
||||
|
||||
- uses: actions/setup-python@v6
|
||||
with:
|
||||
@@ -164,3 +164,24 @@ jobs:
|
||||
- uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
packages-dir: dist
|
||||
|
||||
create-tag:
|
||||
name: Create release tag
|
||||
needs: [publish, version-check]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
env:
|
||||
PACKAGE: openbb-jodi
|
||||
VERSION: ${{ needs.version-check.outputs.version }}
|
||||
RELEASE_SHA: ${{ github.event.pull_request.merge_commit_sha || github.sha }}
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.merge_commit_sha || github.sha }}
|
||||
|
||||
- name: Create and push release tag
|
||||
run: |
|
||||
TAG="${PACKAGE}-v${VERSION}"
|
||||
git tag -a "$TAG" "$RELEASE_SHA" -m "${PACKAGE} ${VERSION}"
|
||||
git push origin "refs/tags/${TAG}"
|
||||
|
||||
Reference in New Issue
Block a user