Skip to content

Merge pull request #64 from digital-chemistry-laboratory/LaurianeJD-c… #112

Merge pull request #64 from digital-chemistry-laboratory/LaurianeJD-c…

Merge pull request #64 from digital-chemistry-laboratory/LaurianeJD-c… #112

Workflow file for this run

name: Build distribution
on:
push:
branches:
- main
tags:
- "*"
pull_request:
branches:
- "*"
workflow_dispatch:
jobs:
build-distribution:
runs-on: "ubuntu-latest"
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install build dependencies
run: pip install --upgrade build
- name: Build distributions
shell: bash -l {0}
run: python -m build
- name: Publish package to PyPI
if: github.repository == 'digital-chemistry-laboratory/morfeus/morfeus' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}