diff --git a/.github/workflows/cd_publish.yml b/.github/workflows/cd_publish.yml new file mode 100644 index 0000000..5645433 --- /dev/null +++ b/.github/workflows/cd_publish.yml @@ -0,0 +1,33 @@ +name: CD - Publish + +on: + release: + types: + - published + +jobs: + publish: + name: External + uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.5.1 + if: github.repository == 'SINTEF/soft7' && startsWith(github.ref, 'refs/tags/v') + with: + # General + git_username: TEAM 4.0 + git_email: Team4.0@SINTEF.no + release_branch: main + + # PyPI + python_package: true + python_version_build: '3.9' + install_extras: '[dev]' + package_dirs: s7 + build_libs: flit + build_cmd: 'flit build' + # Make this 'true' when the secret PYPI_TOKEN has been setup. + publish_on_pypi: false + + # Documentation + update_docs: false + secrets: + PyPI_token: ${{ secrets.PYPI_TOKEN }} + PAT: ${{ secrets.PAT }}