Skip to content

Commit 4ca51d8

Browse files
authored
Merge pull request #67 add release_pypi.yml to worklows
2 parents 369e543 + 7c8764d commit 4ca51d8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/release_pypi.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish python package to testPyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish-to-testpypi:
9+
name: Publish release to testPyPI
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: testrelease
13+
url: https://test.pypi.org/p/DynamicalComponentsAnalysis/
14+
permissions:
15+
id-token: write
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: "3.x"
25+
26+
- name: Install build tools
27+
run: |
28+
python -m pip install --upgrade pip
29+
python -m pip install build
30+
31+
- name: Build package
32+
run: python -m build
33+
34+
- name: Publish package distributions to testPyPI
35+
uses: pypa/gh-action-pypi-publish@release/v1
36+
with:
37+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)