Skip to content

Commit

Permalink
Merge pull request #205 from danielward27/publishing
Browse files Browse the repository at this point in the history
Try to fix publishing issue
  • Loading branch information
danielward27 authored Dec 19, 2024
2 parents 82be4d6 + d253072 commit 5bcdc93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
31 changes: 3 additions & 28 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
# Triggers the workflow when a release is created or edited.
release:
types: [created]
workflow_dispatch:

jobs:
build:
Expand All @@ -27,42 +26,18 @@ jobs:
name: python-package-distributions
path: dist/

publish-to-testpypi:
name: Publish to TestPyPI
needs:
- build
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/flowjax

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

publish-to-pypi:
name: Publish Python distribution to PyPI
name: Publish to PyPI
needs:
- publish-to-testpypi
- build
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/flowjax

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
id-token: write # Mandatory for trusted publishing

steps:
- name: Download all the dists
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ license = { file = "LICENSE" }
name = "flowjax"
readme = "README.md"
requires-python = ">=3.10"
version = "17.0.1"
version = "17.0.2"

[project.urls]
repository = "https://github.com/danielward27/flowjax"
Expand Down

0 comments on commit 5bcdc93

Please sign in to comment.