Skip to content

Commit

Permalink
Add CD Publish workflow utilizing SINTEF/ci-cd
Browse files Browse the repository at this point in the history
Note, it currently doesn't publish on PyPI as the secret for access to
publishing to soft7-pkg-quaat has not been setup.
  • Loading branch information
CasperWA committed Sep 6, 2023
1 parent 1129621 commit 5b2e42f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/cd_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CD - Publish

on:
release:
types:
- published

jobs:
publish:
name: External
uses: SINTEF/ci-cd/.github/workflows/[email protected]
if: github.repository == 'SINTEF/soft7' && startsWith(github.ref, 'refs/tags/v')
with:
# General
git_username: TEAM 4.0
git_email: [email protected]
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 }}

0 comments on commit 5b2e42f

Please sign in to comment.