mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-30 04:14:24 +01:00
Publish pypi package (#179)
This commit is contained in:
28
.github/workflows/publish_package.yml
vendored
Normal file
28
.github/workflows/publish_package.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
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 }}
|
||||
Reference in New Issue
Block a user