Skip to content

Chore(deps-dev): Bump ruff from 0.0.286 to 0.0.287 #260

Chore(deps-dev): Bump ruff from 0.0.286 to 0.0.287

Chore(deps-dev): Bump ruff from 0.0.286 to 0.0.287 #260

Workflow file for this run

name: Publish
on:
push:
# Allow job to be triggered manually.
workflow_dispatch:
# Cancel in-progress jobs when pushing to the same branch.
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Acquire sources
uses: actions/checkout@v3
# Fixup for `setuptools_scm`
# https://github.com/pypa/setuptools_scm/issues/480
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'setup.cfg'
- name: Install pypa/build
run: pip install build
- name: Build a binary wheel and a source tarball
run: python -m build
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip_existing: true
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip_existing: true
password: ${{ secrets.PYPI_TOKEN }}
#- name: publish-to-conda
# if: startsWith(github.ref, 'refs/tags')
# uses: m0nhawk/conda-package-publish-action@master
# with:
# subDir: './conda'
# AnacondaUsername: ${{ secrets.ANACONDA_USERNAME }}
# AnacondaPassword: ${{ secrets.ANACONDA_PASSWORD }}