We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b01b30f commit c423a2dCopy full SHA for c423a2d
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,28 @@
1
+name: Publish to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
8
+permissions:
9
+ contents: read
10
+ id-token: write
11
12
+jobs:
13
+ deploy:
14
+ runs-on: ubuntu-latest
15
+ environment:
16
+ name: pypi
17
+ url: https://pypi.org/p/codeprint
18
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+ - uses: actions/setup-python@v5
22
+ with:
23
+ python-version: '3.9'
24
+ - run: |
25
+ python -m pip install --upgrade pip
26
+ pip install build
27
+ - run: python -m build
28
+ - uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments