From 4f7c92361c114edcef1b5ff3123544c870fdb442 Mon Sep 17 00:00:00 2001 From: Emerson Delatorre Date: Mon, 22 May 2023 00:06:14 -0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=8E=20ci(version):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add version on CD --- .github/workflows/cd.yml | 21 +++++++++++++++++++-- pyproject.toml | 9 ++++++++- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 80e74ee..963f5c3 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -7,8 +7,9 @@ on: workflow_dispatch: jobs: - executa_build: + deploy: runs-on: ubuntu-latest + steps: - name: Realiza o checkout @@ -23,7 +24,23 @@ jobs: uses: Gr1N/setup-poetry@v7 - name: Instala dependĂȘncias - run: poetry install + run: poetry install --no-dev + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} + with: + tag_name: v${{ steps.get_version.outputs.version }} + release_name: Release ${{ steps.get_version.outputs.version }} + body: | + Release ${{ steps.get_version.outputs.version }} + + - name: Get Version + id: get_version + run: | + echo "::set-output name=version::$(python -c 'import toml; print(toml.load("pyproject.toml")["tool"]["poetry"]["version"])')" - name: Build and publish to pypi uses: JRubics/poetry-publish@v1.9 diff --git a/pyproject.toml b/pyproject.toml index 3a190f4..54297b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,15 @@ [tool.poetry] name = "Flunt" -version = "1.0.0" +version = "1.0.1" description = "Python implementation of Domain Notification Pattern based in Flunt (.NET) developed by @andrebaltieri" authors = ["Emerson Delatorre <38289677+Delatorrea@users.noreply.github.com>"] +repository = "https://github.com/Delatorrea/PyFlunt" +homepage = "https://github.com/Delatorrea/PyFlunt" +documentation = "https://github.com/Delatorrea/PyFlunt" +license = "MIT" +keywords = ["flunt", "domain-notification", "validation", "notification"] +classifiers = ["Topic :: Utilities", "Topic :: Software Development", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11"] +readme = "https://github.com/Delatorrea/PyFlunt/blob/main/README.md" [tool.poetry.dependencies] python = "^3.10" From 61315b43bb670054723b02beca96fcdd80c2dd08 Mon Sep 17 00:00:00 2001 From: Emerson Delatorre Date: Mon, 22 May 2023 00:10:38 -0300 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9E=20fix(toml):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 54297b6..84918df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ documentation = "https://github.com/Delatorrea/PyFlunt" license = "MIT" keywords = ["flunt", "domain-notification", "validation", "notification"] classifiers = ["Topic :: Utilities", "Topic :: Software Development", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11"] -readme = "https://github.com/Delatorrea/PyFlunt/blob/main/README.md" +readme = "./README.md" [tool.poetry.dependencies] python = "^3.10"