Skip to content

Commit

Permalink
Updated cd_release workflow (#236)
Browse files Browse the repository at this point in the history
# Description
Updated cd_release workflow for publishing on github.

---------

Co-authored-by: Francesca L. Bleken <[email protected]>
  • Loading branch information
jesper-friis and francescalb authored Aug 19, 2024
1 parent 9d93176 commit 0fb53ee
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/cd_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
python_version_build: "3.9"
build_libs: "flit"
build_cmd: "flit build"
publish_on_pypi: true
publish_on_pypi: false
upload_distribution: true

# Build & publish documentation
update_docs: true
Expand All @@ -32,5 +33,23 @@ jobs:
changelog_exclude_labels: "skip_changelog,duplicate,question,invalid,wontfix"
docs_framework: mkdocs
secrets:
PyPI_token: ${{ secrets.PYPI_TOKEN }}
#PyPI_token: ${{ secrets.PYPI_TOKEN }}
PAT: ${{ secrets.RELEASE_PAT }}

publish:
name: Publish on PyPI
needs: build
runs-on: ubuntu-latest

#environment: release
permissions:
id-token: write

steps:
- name: Download built distritbution
uses: actions/download-artifact@v4
with:
path: dist

- name: Publish on PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 0fb53ee

Please sign in to comment.