Skip to content

updated changelog; #2213

updated changelog;

updated changelog; #2213

Workflow file for this run

name: PyPi
on:
push:
pull_request:
branches:
- main
workflow_dispatch:
branches:
- main
# based on https://github.com/pypa/gh-action-pypi-publish
jobs:
build:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pasta-eln
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: >-
python -m pip install --user --upgrade setuptools wheel
- name: Convert dependencies
run: >-
sed -i 's/==/>=/g' setup.py; cat setup.py
- name: Build
run: >-
python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1