diff --git a/.forgejo/workflows/cd.yaml b/.forgejo/workflows/cd.yaml new file mode 100644 index 0000000..3690493 --- /dev/null +++ b/.forgejo/workflows/cd.yaml @@ -0,0 +1,25 @@ +name: CD + +on: + push: + tags: + - '*' +jobs: + ci: + runs-on: docker + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + cache: 'pip' + + - run: pip install -r requirements.txt + + - run: python3 -m build + + - run: twine upload dist/* + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index f8b985c..0bff070 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ pynetbox==7.4.1 requests==2.32.3 pylint==3.3.4 -build==1.2.2.post1 \ No newline at end of file +build==1.2.2.post1 +twine==6.1.0 \ No newline at end of file