Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flb/trusted publisher on pypi #791

Merged
merged 36 commits into from
Oct 25, 2024
Merged
Changes from 35 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
10833d6
Update pytest-cov requirement from ~=4.1 to ~=5.0 (#738)
dependabot[bot] Apr 12, 2024
b82147d
Update mkdocstrings[python-legacy] requirement from ~=0.24.1 to ~=0.2…
dependabot[bot] Apr 12, 2024
efa396f
Update mkdocstrings[python-legacy] requirement from ~=0.24.3 to ~=0.2…
dependabot[bot] Apr 29, 2024
7e0bca1
Update pytest requirement from ~=8.1 to ~=8.2 (#753)
dependabot[bot] Apr 29, 2024
01ba520
[Auto-generated] Update dependencies (#748)
TEAM4-0 Apr 17, 2024
65e1bf9
Added possibility for = in extra annotations defined in excelparser (…
francescalb Apr 26, 2024
2d123f2
[Auto-generated] Update dependencies (#750)
TEAM4-0 Apr 26, 2024
93044e5
Make it possible to run HermiT on EMMO (#740)
jesper-friis May 1, 2024
a98ee51
Added minor fixes for ontoconvert (#739)
jesper-friis May 2, 2024
ebdb53e
[Auto-generated] Update dependencies (#755)
TEAM4-0 May 3, 2024
f418dd3
[Auto-generated] Update dependencies (#760)
TEAM4-0 May 8, 2024
f8549aa
Merge branch 'master' into ci/dependabot-updates
francescalb May 8, 2024
01e8617
Update mike requirement from ~=2.0 to ~=2.1 (#758)
dependabot[bot] May 8, 2024
45850ac
Update mkdocstrings[python-legacy] requirement from ~=0.25.0 to ~=0.2…
dependabot[bot] May 8, 2024
5bc9317
Update mkdocs requirement from ~=1.5 to ~=1.6 (#749)
dependabot[bot] May 8, 2024
8949b1d
Update pylint requirement from ~=3.1 to ~=3.2 (#765)
dependabot[bot] May 29, 2024
51fcc85
Merge branch 'master' into ci/dependabot-updates
francescalb May 30, 2024
bdeab6b
Update numpy requirement from <2,>=1.19.5 to >=1.19.5,<3 (#771)
dependabot[bot] Jun 21, 2024
310f72b
Keep 'ci/dependabot-updates' up-to-date with 'master'
TEAM4-0 Jul 5, 2024
7ee6d02
Update pytest requirement from ~=8.2 to ~=8.3 (#774)
dependabot[bot] Jul 22, 2024
ca64725
Update pre-commit requirement from ~=3.7 to ~=3.8 (#775)
dependabot[bot] Jul 29, 2024
f1c2e5a
Update mkdocstrings[python-legacy] requirement from ~=0.25.1 to ~=0.2…
dependabot[bot] Jul 29, 2024
0c7f9cb
Keep 'ci/dependabot-updates' up-to-date with 'master'
TEAM4-0 Jul 29, 2024
9dbfbf9
Bump SINTEF/ci-cd from 2.7.4 to 2.8.0 (#778)
dependabot[bot] Jul 30, 2024
f18a4dd
Keep 'ci/dependabot-updates' up-to-date with 'master'
TEAM4-0 Jul 31, 2024
def69b3
Bump SINTEF/ci-cd from 2.8.0 to 2.8.1 (#781)
dependabot[bot] Aug 22, 2024
d5e9714
Bump SINTEF/ci-cd from 2.8.1 to 2.8.2 (#782)
dependabot[bot] Aug 23, 2024
277053e
Update mkdocstrings[python-legacy] requirement from ~=0.25.2 to ~=0.2…
dependabot[bot] Sep 9, 2024
8f4e147
Update pre-commit requirement from ~=3.8 to ~=4.0
dependabot[bot] Oct 7, 2024
a9da630
Bump SINTEF/ci-cd from 2.8.2 to 2.8.3 (#789)
dependabot[bot] Oct 24, 2024
030825b
Update pylint requirement from ~=3.2 to ~=3.3 (#785)
dependabot[bot] Oct 24, 2024
eb3965c
Update mkdocstrings[python-legacy] requirement from ~=0.26.1 to ~=0.2…
dependabot[bot] Oct 24, 2024
c4e06b0
Merge branch 'ci/dependabot-updates' into dependabot/pip/ci/dependabo…
francescalb Oct 25, 2024
f06501a
Updated cd_publish workflow to conform with trusted puclisher in pypi
francescalb Oct 25, 2024
d992391
Merge branch 'master' into flb/trusted_publisher_on_pypi
francescalb Oct 25, 2024
bce9866
Added url to env
francescalb Oct 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions .github/workflows/cd_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [published]

jobs:
publish:
build:
name: External
uses: SINTEF/ci-cd/.github/workflows/[email protected]
if: github.repository == 'emmo-repo/EMMOntoPy' && startsWith(github.ref, 'refs/tags/v')
Expand All @@ -21,8 +21,11 @@ jobs:
# ontopy/__init__.py
package_dirs: ontopy
install_extras: "[dev]"
build_cmd: "python -m build"
publish_on_pypi: true
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
Expand All @@ -32,3 +35,24 @@ jobs:

secrets:
PAT: ${{ secrets.RELEASE_PAT }}

publish:
name: Publish on PyPI
needs: build
runs-on: ubuntu-latest
environment: release
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
Loading