File tree Expand file tree Collapse file tree 2 files changed +42
-8
lines changed Expand file tree Collapse file tree 2 files changed +42
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : publish-test
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v[0-9]+.[0-9]+.[0-9]+'
7
+
8
+ jobs :
9
+ publish-test :
10
+ name : Publish
11
+ runs-on : ubuntu-latest
12
+ environment : pypi
13
+ permissions :
14
+ id-token : write
15
+ steps :
16
+ - name : Check out code
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Install Python
20
+ uses : actions/setup-python@v5
21
+ with :
22
+ python-version : ' 3.10'
23
+
24
+ - name : Install dependencies
25
+ run : |
26
+ python -m pip install twine build
27
+ python -m pip install -e .
28
+
29
+ - name : Build package
30
+ run : |
31
+ python -m build
32
+ python -m twine check dist/*
33
+
34
+ - name : Publish to TestPyPI
35
+ uses : pypa/gh-action-pypi-publish@release/v1
36
+ with :
37
+ repository-url : https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change 1
1
name : publish
2
2
3
3
on :
4
- push :
5
- tags :
6
- - ' v[0-9]+.[0-9]+.[0-9]+'
4
+ published :
5
+ workflows : ["publish-test"]
6
+ types :
7
+ - completed
8
+ status : success
7
9
8
10
jobs :
9
11
publish :
31
33
python -m build
32
34
python -m twine check dist/*
33
35
34
- - name : Publish to TestPyPI
35
- uses : pypa/gh-action-pypi-publish@release/v1
36
- with :
37
- repository-url : https://test.pypi.org/legacy/
38
-
39
36
- name : Publish to PyPI
40
37
uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments