Skip to content

chore(main): release biotope 0.6.1 (#25) #4

chore(main): release biotope 0.6.1 (#25)

chore(main): release biotope 0.6.1 (#25) #4

name: Release Please
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
call-tests:
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
uses: ./.github/workflows/test.yml
build_and_deploy_artifact:
needs:
- release-please
- call-tests
if: needs.release-please.outputs.release_created == 'true'
runs-on: ubuntu-latest
environment:
name: release
url: https://upload.pypi.org/legacy/
permissions:
id-token: write
contents: read
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ needs.release-please.outputs.tag_name }}
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
python-version: "3.12"
- name: Build artifact
run: uv build
- name: Publish artifact to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://upload.pypi.org/legacy/