Skip to content

Commit 6fd5e82

Browse files
committed
Add workflow config
1 parent a707263 commit 6fd5e82

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
run: |
29+
python -m build
30+
- name: Publish package to PyPi
31+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)