Skip to content

Fedot.Industrial 0.4.2 #7

Fedot.Industrial 0.4.2

Fedot.Industrial 0.4.2 #7

Workflow file for this run

name: Build, publish, and deploy with Poetry (on release)
on:
workflow_dispatch: {}
release:
types: [published]
jobs:
build_and_publish:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: poetry install
- name: Build package
run:
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry build
- name: Publish package to PyPI (if release)
if: github.event_name == 'release'
# env:
# PYPI_USERNAME: __token__
# PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: poetry publish
- name: Deploy source code
if: github.event_name == 'release'
uses: actions/upload-artifact@v2
with:
name: source-code-${{ matrix.python-version }}
path: .