rename stable/beta to old/new sensor algorthims #200
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
name: Publish BoneIO π distributions π¦ to PyPI | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'dev' | |
paths: | |
- '**.py' | |
pull_request: | |
branches: [main] | |
release: | |
types: # This configuration does not affect the page_build event above | |
- created | |
- edited | |
jobs: | |
build-n-publish: | |
name: Build and publish Python π distributions π¦ to PyPI and TestPyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: pdm-project/setup-pdm@v3 | |
name: Setup Python and PDM | |
with: | |
python-version: 3.7 | |
architecture: x64 | |
version: 2.6.1 | |
enable-pep582: true # Enable PEP 582 package loading globally | |
- name: Install dependencies | |
run: | | |
python -m pip install -U twine | |
- name: Build | |
run: | | |
pdm build | |
- name: Publish package | |
if: startsWith(github.ref, 'refs/tags') || startsWith(github.event.inputs.tags, 'Deploy') | |
run: | | |
pdm plugin add pdm-publish | |
pdm publish --password ${{ secrets.PYPI_API_TOKEN }} |