File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish on PyPI
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ # After vMajor.Minor.Patch _anything_ is allowed (without "/") !
7
+ - v[0-9]+.[0-9]+.[0-9]+*
8
+
9
+ jobs :
10
+ publish :
11
+ runs-on : ubuntu-latest
12
+ if : github.repository == 'pzarabadip/aiida-porousmaterials' && startsWith(github.ref, 'refs/tags/v')
13
+
14
+ steps :
15
+ - name : Checkout repository
16
+ uses : actions/checkout@v2
17
+
18
+ - name : Set up Python 3.7
19
+ uses : actions/setup-python@v1
20
+ with :
21
+ python-version : 3.7
22
+
23
+ - name : Upgrade setuptools and install package
24
+ run : |
25
+ python -m pip install --upgrade pip setuptools
26
+ python -m pip install -e .
27
+ - name : Assert package version
28
+ env :
29
+ TAG_VERSION : ${{ github.ref }}
30
+ run : python ./.github/check_version.py
31
+
32
+ - name : Build source distribution
33
+ run : python ./setup.py sdist
34
+
35
+ - name : Publish package to PyPI
36
+ uses : pypa/gh-action-pypi-publish@master
37
+ with :
38
+ user : __token__
39
+ password : ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments