Skip to content

v0.6.0.dev0

v0.6.0.dev0 #24

Workflow file for this run

name: CD - Publish
on:
release:
types:
- published
jobs:
build:
name: External
uses: SINTEF/ci-cd/.github/workflows/[email protected]
if: github.repository == 'SINTEF/oteapi-optimade' && startsWith(github.ref, 'refs/tags/v')
with:
# General
git_username: "TEAM 4.0[bot]"
git_email: "[email protected]"
# Python package
python_package: true
package_dirs: oteapi_optimade
release_branch: main
install_extras: "[dev]"
python_version_build: "3.9"
build_libs: flit
build_cmd: "flit build"
build_dir: "dist"
publish_on_pypi: false
upload_distribution: true
# Documentation
update_docs: true
python_version_docs: "3.9"
doc_extras: "[doc]"
changelog_exclude_labels: "skip_changelog,duplicate,question,invalid,wontfix"
secrets:
PAT: ${{ secrets.RELEASE_PAT }}
publish:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest
# Using environments is recommended by PyPI when using Trusted Publishers
environment:
name: pypi
url: https://pypi.org/project/oteapi-optimade
# The id-token:write permission is required by the PyPI upload action for
# Trusted Publishers
permissions:
id-token: write
steps:
- name: Download distribution
uses: actions/download-artifact@v4
with:
name: dist # The artifact will always be called 'dist'
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1