optiklear 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,61 @@
1
+ name: Publish OptiKlear to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ build:
12
+ name: Build and test package
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v6
18
+
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v6
21
+ with:
22
+ python-version: "3.10"
23
+
24
+ - name: Install build tools
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ python -m pip install build twine
28
+
29
+ - name: Build distributions
30
+ run: python -m build
31
+
32
+ - name: Check distributions
33
+ run: python -m twine check dist/*
34
+
35
+ - name: Upload distributions
36
+ uses: actions/upload-artifact@v5
37
+ with:
38
+ name: python-package-distributions
39
+ path: dist/
40
+
41
+ publish:
42
+ name: Publish to PyPI
43
+ needs: build
44
+ runs-on: ubuntu-latest
45
+
46
+ environment:
47
+ name: pypi
48
+ url: https://pypi.org/project/optiklear/
49
+
50
+ permissions:
51
+ id-token: write
52
+
53
+ steps:
54
+ - name: Download distributions
55
+ uses: actions/download-artifact@v6
56
+ with:
57
+ name: python-package-distributions
58
+ path: dist/
59
+
60
+ - name: Publish package
61
+ uses: pypa/gh-action-pypi-publish@release/v1