From e21efbdc38417f9027fc93554a87fd6d0b90f1c6 Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Wed, 1 Nov 2023 10:22:13 +0100 Subject: [PATCH] Tidy CI pipelines and publish on tag (#210) * Tidy CI pipelines and publoish on tag * Undo * Undo --- .github/workflows/main.yml | 2 +- .github/workflows/publish.yml | 6 ++++-- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 839a988..a648fd5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ jobs: ${{ runner.os }}-poetry- - uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' - name: Install poetry uses: abatilo/actions-poetry@v2.3.0 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 83beb4d..12e334f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@master - uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' - name: Install poetry uses: abatilo/actions-poetry@v2.3.0 with: @@ -19,7 +19,9 @@ jobs: - name: Install pip dependencies run: poetry install - name: Package - run: poetry build + run: | + poetry version ${{ github.event.release.tag_name }} + poetry build - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@v1.8.10 with: diff --git a/pyproject.toml b/pyproject.toml index 84421c9..982747e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "iolite-client" -version = "0.6.0" +version = "0.0.0" description = "API client for interacting with IOLite's remote API" authors = ["Malachi Soord "] license = "MIT"