Skip to content

Merge pull request #88 from CUQI-DTU/multiple_inputs_pde_fenics #42

Merge pull request #88 from CUQI-DTU/multiple_inputs_pde_fenics

Merge pull request #88 from CUQI-DTU/multiple_inputs_pde_fenics #42

Workflow file for this run

name: Publish to PyPI and TestPyPI
on:
push:
branches:
- main
release:
types: [created]
jobs:
build-n-publish:
name: Build and publish to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history to determine version
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish to pre-release to PyPI
if: github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish to PyPI
if: github.event_name == 'release' && github.event.action == 'created' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}