This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
Merge pull request #378 from pyiron/write_functions #2776
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow is used to upload and deploy a new release to PyPi | |
# Based on https://github.com/pypa/gh-action-pypi-publish | |
name: PyPi Release | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/pyiron_continuum | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
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 | |
uses: pypa/gh-action-pypi-publish@release/v1 |