Skip to content

Commit 1464770

Browse files
committed
add action for upload
1 parent d67f208 commit 1464770

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)