From d8c45c5fde44e0d2628f8c4519c7a1a95a62649c Mon Sep 17 00:00:00 2001 From: Xyphuz Date: Sat, 14 May 2022 22:14:34 +0800 Subject: [PATCH] chore: update cd configuration --- .github/workflows/cd.yml | 6 ++++-- .github/workflows/release-tagged-version.yml | 6 ++++++ pyproject.toml | 8 +++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 50639c1..0868300 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -1,14 +1,16 @@ name: CD on: - release: - types: [ created ] + push: + tags: + - "v*" jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Build and Publish to PyPi uses: JRubics/poetry-publish@v1.10 with: diff --git a/.github/workflows/release-tagged-version.yml b/.github/workflows/release-tagged-version.yml index 7ca6abc..3c6d547 100644 --- a/.github/workflows/release-tagged-version.yml +++ b/.github/workflows/release-tagged-version.yml @@ -5,6 +5,12 @@ on: tags: - "v*" +permissions: + id-token: "write" + contents: "write" + packages: "write" + pull-requests: "read" + jobs: tagged-release: runs-on: "ubuntu-latest" diff --git a/pyproject.toml b/pyproject.toml index 6ae61bc..3b7de75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,13 @@ name = "compose-viz" version = "0.1.0" description = "A docker-compose/podman-compose graph visualization tool that allows you to gernerate graph in DOT format or PNG." authors = ["Xyphuz Wu "] +readme = "README.md" license = "MIT" +homepage = "https://github.com/compose-viz/compose-viz" +repository = "https://github.com/compose-viz/compose-viz" +include = [ + "LICENSE", +] [tool.poetry.dependencies] python = "^3.9" @@ -17,4 +23,4 @@ requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] -compose_viz = "compose_viz.cli:start_cli" +cpv = "compose_viz.cli:start_cli"