From e9a007b0bf85e1161ddcf9e340b1cf2dfc9177ab Mon Sep 17 00:00:00 2001 From: Vincent Simonin Date: Thu, 7 Nov 2024 16:49:16 +0100 Subject: [PATCH] :sparkles: Add Github action workflow --- .github/workflows/tags_cd.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/tags_cd.yml diff --git a/.github/workflows/tags_cd.yml b/.github/workflows/tags_cd.yml new file mode 100644 index 0000000..846f682 --- /dev/null +++ b/.github/workflows/tags_cd.yml @@ -0,0 +1,28 @@ +name: Realease CD + +on: + push: + tags: + - v* + +jobs: + pypi-publish: + name: upload release to PyPI + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: "3.11" + - name: Install netbox_passhup_plugin Dependencies + run: | + pip install build + - name: Install netbox_passhup_plugin Dependencies + run: | + python -m build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1