From 7593c27b00da6a3bba5b2904738b37021dcb7046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Micard?= Date: Wed, 19 Feb 2025 12:21:57 +0100 Subject: [PATCH] Add CD --- .forgejo/workflows/cd.yaml | 25 +++++++++++++++++++++++++ requirements.txt | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .forgejo/workflows/cd.yaml 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