Skip to content

Commit

Permalink
v0.5.2 publish to pypa w/o v prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
bortok committed Apr 19, 2024
1 parent 1035076 commit 106f9b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Python distribution to PyPI and TestPyPI

on:
push:
branches: [ "main", "dev" ]
branches: [ "main" ]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -30,33 +30,8 @@ jobs:
name: python-package-distributions
path: dist/

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

environment:
name: devtest
url: https://test.pypi.org/p/nrx

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

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
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 to PyPI
if: startsWith(github.ref, 'refs/tags/v') # only publish to PyPI on tag pushes that start with 'v'
needs:
- build
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion src/nrx/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
"""
Metadata for the nrx package
"""
__version__ = "0.5.1"
__version__ = "0.5.2"
2 changes: 1 addition & 1 deletion versions.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nrx: v0.5.1
nrx: v0.5.2
templates: v0.2.0

0 comments on commit 106f9b4

Please sign in to comment.