-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 1.16 KB
/
cd_release.yml
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
name: CD - Publish & Deploy
on:
release:
types:
- published
jobs:
update-repo-and-release:
name: External
uses: SINTEF/ci-cd/.github/workflows/[email protected]
if: github.repository == 'Materials-Consortia/optimade-gateway' && startsWith(github.ref, 'refs/tags/v')
with:
# General
git_username: OPTIMADE Developers
git_email: "[email protected]"
release_branch: main
install_extras: "[dev]"
# PyPI publishing
python_package: true
python_version_build: "3.10"
package_dirs: "optimade_gateway"
version_update_changes_separator: ";"
version_update_changes: |
{package_dir}/__init__.py;__version__ = \".*\";__version__ = \"{version}\"
{package_dir}/config.json;\"version\": \".*\",;\"version\": \"{version}\",
tests/static/test_config.json;\"version\": \".*\",;\"version\": \"{version}\",
build_libs: "flit"
build_cmd: "flit build"
publish_on_pypi: false
# Documentation
update_docs: true
python_version_docs: "3.10"
doc_extras: "[docs]"
docs_framework: "mkdocs"
secrets:
PAT: ${{ secrets.RELEASE_PAT_CASPER }}