File tree Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Json2XML 🐍 distributions 📦 to pypi
2
+
3
+ on :
4
+ release :
5
+ types :
6
+ - published
7
+
8
+ jobs :
9
+ build-n-publish :
10
+ name : Build and publish Python 🐍 distributions 📦 to pypi
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Set up Python 3.10
15
+ uses : actions/setup-python@v3
16
+ with :
17
+ python-version : ' 3.10'
18
+
19
+ - name : Install pypa/build
20
+ run : >-
21
+ python -m
22
+ pip install
23
+ build
24
+ --user
25
+ - name : Build a binary wheel and a source tarball
26
+ run : >-
27
+ python -m
28
+ build
29
+ --sdist
30
+ --wheel
31
+ --outdir dist/
32
+ .
33
+
34
+ - name : Publish distribution 📦 to PyPI
35
+ if : startsWith(github.ref, 'refs/tags')
36
+ uses : pypa/gh-action-pypi-publish@release/v1
37
+ with :
38
+ user : __token__
39
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Publish Json2XML 🐍 distributions 📦 to TestPyPI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' develop'
7
+ - ' release/**'
8
+
9
+ jobs :
10
+ build-n-publish :
11
+ name : Build and publish Python 🐍 distributions 📦 to TestPyPI
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : Set up Python 3.10
16
+ uses : actions/setup-python@v3
17
+ with :
18
+ python-version : ' 3.10'
19
+
20
+ - name : Install pypa/build
21
+ run : >-
22
+ python -m
23
+ pip install
24
+ build
25
+ --user
26
+ - name : Build a binary wheel and a source tarball
27
+ run : >-
28
+ python -m
29
+ build
30
+ --sdist
31
+ --wheel
32
+ --outdir dist/
33
+ .
34
+
35
+ - name : Publish distribution 📦 to Test PyPI
36
+ uses : pypa/gh-action-pypi-publish@release/v1
37
+ with :
38
+ user : __token__
39
+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
40
+ repository_url : https://test.pypi.org/legacy/
41
+ skip_existing : true
You can’t perform that action at this time.
0 commit comments