diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci.yml similarity index 95% rename from .github/workflows/ci_cd.yml rename to .github/workflows/ci.yml index 9e7917b..39221cc 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: CI/CD on: push: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fae4f39..a090c4f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,10 @@ name: Publish +# Trigger on new tagged releases from auto on: - workflow_call: + push: + tags: + - 'v*' jobs: pypi-publish: @@ -32,7 +35,7 @@ jobs: pip install --upgrade pip pip install -r requirements.txt pip install -r test-requirements.txt - + # Verify the version - name: Verify version run: hatch version diff --git a/README.md b/README.md index a00b34b..8fe6eaf 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![Auto Release](https://img.shields.io/badge/release-auto.svg?colorA=888888&colorB=9B065A&label=auto)](https://github.com/intuit/auto) -[![CI/CD](https://github.com/alexchristy/PyOPN/actions/workflows/ci_cd.yml/badge.svg)](https://github.com/alexchristy/PyOPN/actions) +[![CI](https://github.com/alexchristy/PyOPN/actions/workflows/ci.yml/badge.svg)](https://github.com/alexchristy/PyOPN/actions) [![PyPI version](https://badge.fury.io/py/pyopn.svg)](https://badge.fury.io/py/pyopn) A simple Python wrapper for the OPNsense REST API.