Skip to content

Merge pull request #140 from XeonHis/hotfix/v0.2.1/circular_import_fix #1

Merge pull request #140 from XeonHis/hotfix/v0.2.1/circular_import_fix

Merge pull request #140 from XeonHis/hotfix/v0.2.1/circular_import_fix #1

Workflow file for this run

name: Upload Python Package
on:
workflow_dispatch:
push:
tags:
- v*
# branches: [main]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./omagent-core
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
poetry install --no-root --only=main
- name: Build package
run: poetry build
- name: Publish package
env:
GITHUB_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry config pypi-token.pypi $GITHUB_TOKEN
poetry publish