mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-04 23:04:28 +01:00
29 lines
596 B
YAML
29 lines
596 B
YAML
name: Publish to PyPI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.8
|
|
|
|
- name: Install Poetry
|
|
run: |
|
|
curl -sSL https://install.python-poetry.org | python3 -
|
|
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
|
|
|
|
- name: Install dependencies
|
|
run: poetry install
|
|
|
|
- name: Build and publish
|
|
run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
|