From c94257a4f1996c99a02d60839e3d54a071e99270 Mon Sep 17 00:00:00 2001 From: Jovan Sakovic <49978945+sakce@users.noreply.github.com> Date: Thu, 19 Oct 2023 10:40:43 +0100 Subject: [PATCH] wip --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++++++++++ datadict/__init__.py | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..141036e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,30 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Upload Python Package + +on: + release: + types: [published] + push: + +permissions: + contents: read + id-token: write + +jobs: + publish-test-pypi: + runs-on: ubuntu-latest + environment: test + steps: + - name: PyPI Poetry Publish + uses: code-specialist/pypi-poetry-publish@v1.2 + with: + ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PUBLISH_REGISTRY: "https://test.pypi.org/simple/" + PUBLISH_REGISTRY_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }} diff --git a/datadict/__init__.py b/datadict/__init__.py index dee6e41..f6ccb3d 100644 --- a/datadict/__init__.py +++ b/datadict/__init__.py @@ -1,3 +1,5 @@ from .datadict_class import datadict from .datadict_main import cli from .datadict_yaml import * + +__version__ = "0.2.1"