Chore(deps-dev): Bump ruff from 0.3.3 to 0.3.4 #377
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 | |
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@v4 | |
# Fixup for `setuptools_scm` | |
# https://github.com/pypa/setuptools_scm/issues/480 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
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 }} |