File tree 1 file changed +53
-15
lines changed
1 file changed +53
-15
lines changed Original file line number Diff line number Diff line change 1
- name : publish new version to PyPI
2
-
3
- on : release
4
- # release:
5
- # types: [published]
6
-
1
+ name : release
2
+ on :
3
+ release :
4
+ types : [published ]
7
5
jobs :
8
6
deploy :
9
7
runs - on : ubuntu - latest
13
11
strategy :
14
12
max - parallel : 1
15
13
matrix :
16
- package : ["test_validation" ]
17
-
14
+ package : ["pymatgen-io-validation" ]
18
15
steps :
19
- - uses : actions / checkout @v4
20
-
21
- - uses : actions / setup - python @v5
16
+ - uses : actions / checkout @v3
17
+ - uses : actions / setup - python @v4
22
18
with :
23
- python - version : 3.11
24
-
19
+ python - version : 3.8
25
20
- name : Install dependencies
26
21
run : |
27
22
python - m pip install - - upgrade pip
28
23
pip install setuptools setuptools_scm wheel
29
-
30
24
- name : Build packages
31
25
run : python setup .py sdist bdist_wheel
32
-
33
26
- name : Publish package
34
27
uses : pypa / gh - action - pypi - publish @master
35
28
with :
38
31
skip - existing : true
39
32
verbose : true
40
33
packages_dir : dist /
34
+
35
+
36
+
37
+
38
+
39
+ # name: publish new version to PyPI
40
+
41
+ # on: release
42
+ # # release:
43
+ # # types: [published]
44
+
45
+ # jobs:
46
+ # deploy:
47
+ # runs-on: ubuntu-latest
48
+ # permissions:
49
+ # # For pypi trusted publishing
50
+ # id-token: write
51
+ # strategy:
52
+ # max-parallel: 1
53
+ # matrix:
54
+ # package: ["test_validation"]
55
+
56
+ # steps:
57
+ # - uses: actions/checkout@v4
58
+
59
+ # - uses: actions/setup-python@v5
60
+ # with:
61
+ # python-version: 3.11
62
+
63
+ # - name: Install dependencies
64
+ # run: |
65
+ # python -m pip install --upgrade pip
66
+ # pip install setuptools setuptools_scm wheel
67
+
68
+ # - name: Build packages
69
+ # run: python setup.py sdist bdist_wheel
70
+
71
+ # - name: Publish package
72
+ # uses: pypa/gh-action-pypi-publish@master
73
+ # with:
74
+ # # user: __token__
75
+ # # password: ${{ secrets.PYPI_API_TOKEN }}
76
+ # skip-existing: true
77
+ # verbose: true
78
+ # packages_dir: dist/
You can’t perform that action at this time.
0 commit comments