Skip to content

feat: Boundary detection tools. (#62) #38

feat: Boundary detection tools. (#62)

feat: Boundary detection tools. (#62) #38

name: Create Release PRs
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release-please:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: release please
uses: googleapis/release-please-action@v4
id: release
with:
manifest-file: ".release-please.manifest.json"
config-file: "release-please.config.json"
target-branch: "main"
token: ${{ secrets.GITHUB_TOKEN }}
outputs:
paths_released: ${{ steps.release.outputs.paths_released }}
publish-pypi-package:
name: Build and publish Python package to PyPI
runs-on: ubuntu-latest
needs: release-please
if: contains(needs.release-please.outputs.paths_released, '.')
environment:
name: pypi
url: https://pypi.org/p/copick-utils
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout ref branch
uses: actions/checkout@v6
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.7.13"
python-version: "3.12"
- name: build
run: |
uv build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist