Skip to content

docs: Add Cryoet Workflow article (#1262) #78

docs: Add Cryoet Workflow article (#1262)

docs: Add Cryoet Workflow article (#1262) #78

Workflow file for this run

name: Create Release PRs
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
concurrency:
group: release-prs-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: release please
uses: googleapis/release-please-action@v4
id: release
with:
# TODO Configuring using manifest file as workaround until we move the frontend to its own repo
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, 'client/python/cryoet_data_portal')
environment:
name: pypi
url: https://pypi.org/p/cryoet-data-portal
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout ref branch
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- uses: actions/setup-python@v4
with:
pyton-version: "3.10"
- name: build
run: |
make build -C client/python/cryoet_data_portal
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: client/python/cryoet_data_portal/dist