From e93a2ea8182a2529e6d791f7cc972f3487b720cd Mon Sep 17 00:00:00 2001 From: Oleg Smirnov Date: Sun, 18 Aug 2024 11:10:44 +0200 Subject: [PATCH] added poetry publish workflow --- .github/workflows/poetry-publish.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/publish-cargo.yml | 2 +- pyproject.toml | 2 +- suricat_cabs/pyproject.toml | 2 +- 4 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/poetry-publish.yml diff --git a/.github/workflows/poetry-publish.yml b/.github/workflows/poetry-publish.yml new file mode 100644 index 0000000..776ef0f --- /dev/null +++ b/.github/workflows/poetry-publish.yml @@ -0,0 +1,28 @@ +name: Python package +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + # This is used to complete the identity challenge + # with sigstore/fulcio when running outside of PRs. + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set PyPI token + run: poetry config pypi-token.pypi ${{secrets.PYPI_TOKEN}} + + - name: Publish cabs + run: cd suricat_beams && poetry publish --build + + - name: Publish main package + run: poetry publish --build diff --git a/.github/workflows/publish-cargo.yml b/.github/workflows/publish-cargo.yml index 55a4ad3..759ecfa 100644 --- a/.github/workflows/publish-cargo.yml +++ b/.github/workflows/publish-cargo.yml @@ -1,4 +1,4 @@ -name: Docker +name: Build docker images on: push: diff --git a/pyproject.toml b/pyproject.toml index 621e81c..e4a054f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "suricat-beams" -version = "0.0.4" +version = "0.0.5" description = "MeerKAT primary beam model handling utilities" authors = ["Oleg Smirnov "] license = "MIT" diff --git a/suricat_cabs/pyproject.toml b/suricat_cabs/pyproject.toml index 8e9257a..9ec9dba 100644 --- a/suricat_cabs/pyproject.toml +++ b/suricat_cabs/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "suricat-beams-cabs" -version = "0.0.4" +version = "0.0.5" description = "MeerKAT primary beam model handling utilities -- Stimela cabs" authors = ["Oleg Smirnov "] license = "MIT"