Skip to content

Feature/fact scorer demons #14

Feature/fact scorer demons

Feature/fact scorer demons #14

name: Publish Python Package
on:
pull_request:
types: [closed]
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
# This job runs only if the pull request was merged (closed pull request can be merged or just closed without merging)
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install pypa/build
run: |
python -m pip install build --user
- name: Build package
run: python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}