File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Upload Python Package
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-24.04
10+ # Specifying a GitHub environment is optional, but strongly encouraged
11+ environment : pypi
12+ permissions :
13+ # IMPORTANT: this permission is mandatory for Trusted Publishing
14+ id-token : write
15+ steps :
16+ - uses : actions/checkout@v4
17+ - name : Set up Python
18+ uses : actions/setup-python@v4
19+ with :
20+ python-version : ' 3.x'
21+ - name : Install dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install build
25+ - name : Set version
26+ run : |
27+ sed -i "s/__version__.*/__version__ = \"${GITHUB_REF_NAME}\"/g" certbot_dns_nicru/__init__.py
28+ - name : Build package
29+ run : python -m build
30+ - name : Publish package
31+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -12,3 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212- The build system, to hatchling
1313- Update dependecies
1414- Update tests
15+
16+ ### Added
17+
18+ - The github action: upload, tests
You can’t perform that action at this time.
0 commit comments