-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cwa/close-213-support-oteapi-v0.7
- Loading branch information
Showing
3 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- published | ||
|
||
jobs: | ||
publish-package-and-docs: | ||
build: | ||
name: External | ||
uses: SINTEF/ci-cd/.github/workflows/[email protected] | ||
if: github.repository == 'SINTEF/oteapi-optimade' && startsWith(github.ref, 'refs/tags/v') | ||
|
@@ -21,8 +21,11 @@ jobs: | |
release_branch: main | ||
install_extras: "[dev]" | ||
python_version_build: "3.9" | ||
build_cmd: "pip install -U flit && flit build" | ||
publish_on_pypi: true | ||
build_libs: flit | ||
build_cmd: "flit build" | ||
build_dir: "dist" | ||
publish_on_pypi: false | ||
upload_distribution: true | ||
|
||
# Documentation | ||
update_docs: true | ||
|
@@ -31,5 +34,29 @@ jobs: | |
changelog_exclude_labels: "skip_changelog,duplicate,question,invalid,wontfix" | ||
|
||
secrets: | ||
PyPI_token: ${{ secrets.PYPI_TOKEN }} | ||
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 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
import logging | ||
|
||
__version__ = "0.5.0" | ||
__version__ = "0.5.1" | ||
__author__ = "Casper Welzel Andersen" | ||
__author_email__ = "[email protected]" | ||
|
||
|