Skip to content

Fix import_file command and collection metadata in indexing #71

Fix import_file command and collection metadata in indexing

Fix import_file command and collection metadata in indexing #71

Workflow file for this run

name: release
on:
pull_request_target:
types: [closed]
workflow_dispatch:
inputs:
releaseType:
description: 'Release type'
required: true
default: 'patch'
type: choice
options:
- patch
- minor
- major
jobs:
release_job:
uses: bedita/github-workflows/.github/workflows/release.yml@v1
with:
main_branch: 'main'
dist_branches: '["main"]'
version_bump: ${{ inputs.releaseType }}
toml_conf_path: pyproject.toml
toml_conf_version_key: "tool.poetry.version"
publish_package:
runs-on: 'ubuntu-latest'
needs: release_job
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Debug output version
run: |
echo version var ${{ needs.release_job.outputs.version }}
- name: Print message if no semantic version was created
if: contains(needs.release_job.outputs.version, 'undefined')
run: |
echo Skip version file update and package publication
- name: Update pyproject.toml with new version
if: ${{ !contains(needs.release_job.outputs.version, 'undefined') }}
uses: colathro/toml-editor@1.1.1
with:
file: pyproject.toml
key: "tool.poetry.version"
value: "${{ needs.release_job.outputs.version }}"
- name: Build and publish to pypi
if: ${{ !contains(needs.release_job.outputs.version, 'undefined') }}
uses: JRubics/poetry-publish@v1.17
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}