-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (53 loc) · 1.61 KB
/
cd_release.yml
File metadata and controls
62 lines (53 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CD - Publish
on:
release:
types:
- published
jobs:
build:
name: External
uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.10.0
if: github.repository == 'EMMC-ASBL/oteapi-dlite' && startsWith(github.ref, 'refs/tags/v')
with:
# General
git_username: "${{ vars.CI_CD_GIT_USER }}"
git_email: "${{ vars.CI_CD_GIT_EMAIL }}"
release_branch: master
install_extras: "[dev]"
# Build package
python_package: true
package_dirs: oteapi_dlite
python_version_build: "3.10"
build_libs: "flit"
build_cmd: "flit build"
build_dir: "dist"
changelog_exclude_labels: "skip_changelog,duplicate,question,invalid,wontfix"
publish_on_pypi: false
upload_distribution: true
# Build & publish documentation
update_docs: true
python_version_docs: "3.10"
doc_extras: "[docs]"
docs_framework: mkdocs
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-dlite
# 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@v8
with:
name: dist # The artifact will always be called 'dist'
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1