We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a707263 commit 6fd5e82Copy full SHA for 6fd5e82
.github/workflows/publish-to-pypi.yml
@@ -0,0 +1,31 @@
1
+name: Upload Python Package to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [released]
6
+ workflow_dispatch:
7
+jobs:
8
+ publish-to-pypi:
9
+ name: Publish to PyPI
10
+ runs-on: ubuntu-latest
11
+ environment:
12
+ name: pypi
13
+ url: https://pypi.org/p/formcrypt
14
+ permissions:
15
+ id-token: write
16
+ steps:
17
+ - name: Get latest commit
18
+ uses: actions/checkout@v4
19
+ - name: Install python
20
+ uses: actions/setup-python@v4
21
+ with:
22
+ python-version: "3.x"
23
+ - name: Install dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ pip install hatch wheel build
27
+ - name: Build package
28
29
+ python -m build
30
+ - name: Publish package to PyPi
31
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments