Add CD
This commit is contained in:
parent
4a9876c349
commit
7593c27b00
2 changed files with 27 additions and 1 deletions
25
.forgejo/workflows/cd.yaml
Normal file
25
.forgejo/workflows/cd.yaml
Normal file
|
@ -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 }}
|
|
@ -2,3 +2,4 @@ pynetbox==7.4.1
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
pylint==3.3.4
|
pylint==3.3.4
|
||||||
build==1.2.2.post1
|
build==1.2.2.post1
|
||||||
|
twine==6.1.0
|
Loading…
Add table
Add a link
Reference in a new issue