Release new EMMOntoPy version #38
Workflow file for this run
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: Release new EMMOntoPy version | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: External | |
uses: SINTEF/ci-cd/.github/workflows/[email protected] | |
if: github.repository == 'emmo-repo/EMMOntoPy' && startsWith(github.ref, 'refs/tags/v') | |
with: | |
git_username: EMMOntoPy Developers | |
git_email: "[email protected]" | |
release_branch: master | |
# Publish package | |
python_package: true | |
python_version_build: "3.9" | |
# We're mentioning only 'ontopy', since the version is set statically only in | |
# ontopy/__init__.py | |
package_dirs: ontopy | |
install_extras: "[dev]" | |
build_libs: build | |
build_cmd: "python -m build -o dists" | |
build_dir: dists | |
publish_on_pypi: false | |
upload_distribution: true | |
# Update documentation | |
update_docs: true | |
python_version_docs: "3.9" | |
doc_extras: "[docs]" | |
changelog_exclude_labels: dependencies | |
secrets: | |
PAT: ${{ secrets.RELEASE_PAT }} | |
publish: | |
name: Publish on PyPI | |
needs: build | |
runs-on: ubuntu-latest | |
environment: | |
name: release | |
url: https://pypi.org/project/EMMOntoPy | |
permissions: | |
id-token: write | |
steps: | |
- name: Download distribution | |
uses: actions/download-artifact@v4 | |
with: | |
name: dist # The artifact will always be called 'dist' | |
path: my-dists | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
# The path to the distribution to upload | |
package-dir: my-dists |