docs: removed editable option from install workflow #7
Workflow file for this run
This file contains hidden or 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
name: Build and upload to PyPI | |
# Only build on tagged releases | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
name: Build and upload sdist | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/[email protected] | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
generate-run-shell: true | |
environment-file: environment.yml | |
create-args: >- | |
python=3.10 | |
- name: Install py-build and setuptools-scm | |
run: | | |
micromamba run -n floatcsep pip install --upgrade build setuptools-scm | |
- name: Build | |
run: | | |
micromamba run -n floatcsep python3 -m build --sdist --wheel --outdir dist/ | |
- name: Check distribution files | |
run: | | |
micromamba run -n floatcsep pip install twine | |
micromamba run -n floatcsep twine check dist/* | |
- name: Publish Package | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |