From 1d431b04183d00f6a7ff1d4dd37c7ae50292d1e5 Mon Sep 17 00:00:00 2001 From: Fabian Zills <46721498+PythonFZ@users.noreply.github.com> Date: Tue, 13 Aug 2024 17:22:53 +0200 Subject: [PATCH] V02 (#102) * bump version * add publish CI --- .github/workflows/publish.yaml | 22 ++++++++++++++++++++++ pyproject.toml | 2 +- tests/test_znflow.py | 2 +- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..4af74a8 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,22 @@ +name: Release +on: + release: + types: + - created + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Install Poetry + uses: snok/install-poetry@v1 + - name: Publish + env: + PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + run: | + poetry config pypi-token.pypi $PYPI_TOKEN + poetry publish --build diff --git a/pyproject.toml b/pyproject.toml index e398d5f..0715c42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "znflow" -version = "0.2.0a0" +version = "0.2.0" description = "A general purpose framework for building and running computational graphs." authors = ["zincwarecode "] license = "Apache-2.0" diff --git a/tests/test_znflow.py b/tests/test_znflow.py index 530eb44..fd797a9 100644 --- a/tests/test_znflow.py +++ b/tests/test_znflow.py @@ -5,4 +5,4 @@ def test_version(): """Test the version.""" - assert znflow.__version__ == "0.2.0a0" + assert znflow.__version__ == "0.2.0"