We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a3b56e commit 48a0b9fCopy full SHA for 48a0b9f
1 file changed
.github/workflows/pypi_deployment.yml
@@ -0,0 +1,36 @@
1
+name: Publish PathSim to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
8
+permissions:
9
+ contents: read
10
11
+jobs:
12
+ deploy:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ with:
17
+ fetch-depth: 0
18
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v3
21
22
+ python-version: '3.x'
23
24
+ - name: Install dependencies
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ pip install build wheel setuptools
28
29
+ - name: Build package
30
+ run: python -m build
31
32
+ - name: Publish package
33
+ uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
34
35
+ user: __token__
36
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments