Compare commits

..
2 Commits
Author SHA1 Message Date
Sven Luethi 57195a822b modified: .github/workflows/python-publish.yml 2025-11-25 01:25:42 +01:00
Sven Luethi 0590caeebd modified: src/netbox_plugin_bind_provisioner/__init__.py
Update version string
2025-11-25 00:13:06 +01:00
2 changed files with 12 additions and 21 deletions

No files matched your search

+11 -20
View File
@@ -6,21 +6,21 @@
# separate terms of service, privacy policy, and support # separate terms of service, privacy policy, and support
# documentation. # documentation.
name: Upload Python Package name: Create and Upload Python Package
on: on:
release: release:
types: [published] types: [published]
# push:
# branches:
# - main
permissions: permissions:
contents: read contents: read
jobs: jobs:
build-release: build-and-publish:
name: Build name: Build and Publish
environment: pypi
permissions:
id-token: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -29,23 +29,14 @@ jobs:
with: with:
python-version: "3.x" python-version: "3.x"
- name: Build release distributions - name: Install build tools
run: | run: |
# NOTE: put your own distribution build steps here. python -m pip install --upgrade pip
python -m pip install build python -m pip install build
python -m build --wheel
- name: Upload distributions - name: Build release
uses: actions/upload-artifact@v4 run: |
with: python -m build --sdist --wheel
name: release-dists
path: dist/
pypi-publish:
name: Upload
environment: pypi
permissions:
id-token: write
steps:
- name: Publish package distributions to PyPI - name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
@@ -5,7 +5,7 @@ from django.utils.translation import gettext_lazy as _
from django.dispatch import receiver from django.dispatch import receiver
from django.conf import settings from django.conf import settings
__version__ = "0.9.6" __version__ = "0.9.8"
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)